-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o Implementing filtering for rpm and pkg. The pkg part is not very we…
…ll tested yet. Should fix issue #1.
- Loading branch information
Showing
44 changed files
with
431 additions
and
287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
* | ||
* @author <a href="mailto:[email protected]">Trygve Laugstøl</a> | ||
*/ | ||
public abstract class UnixPackage<UP extends UnixPackage<UP>> | ||
public abstract class UnixPackage<UP extends UnixPackage<UP, PP>, PP extends UnixPackage.PreparedPackage> | ||
implements FileCollector | ||
{ | ||
private final String packageFileExtension; | ||
|
@@ -93,7 +93,7 @@ public UP setVersion( PackageVersion version ) | |
public abstract void beforeAssembly( FileAttributes defaultDirectoryAttributes, LocalDateTime timestamp ) | ||
throws IOException; | ||
|
||
public abstract void packageToFile( File packageFile, ScriptUtil.Strategy strategy ) | ||
public abstract PP prepare( ScriptUtil.Strategy strategy ) | ||
throws Exception; | ||
|
||
public final PackageVersion getVersion() | ||
|
@@ -105,4 +105,10 @@ public String getPackageFileExtension() | |
{ | ||
return packageFileExtension; | ||
} | ||
|
||
public abstract class PreparedPackage | ||
{ | ||
public abstract void packageToFile( File packageFile ) | ||
throws Exception; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import static org.codehaus.mojo.unix.maven.plugin.ShittyUtil.* | ||
import static org.codehaus.mojo.unix.sysvpkg.PkgchkUtil.* | ||
import org.codehaus.mojo.unix.sysvpkg.PkginfoFile | ||
import org.codehaus.mojo.unix.sysvpkg.Pkginfo | ||
import org.codehaus.mojo.unix.sysvpkg.PkginfoUtil | ||
import static fj.data.Option.* | ||
import fj.data.Option | ||
|
@@ -12,7 +12,7 @@ boolean success = true | |
|
||
File pkg = new File((File) basedir, "target/project-sysvpkg-1-1.1-2.pkg") | ||
|
||
pkginfo = new PkginfoFile("all", "application", "Hudson", "project-sysvpkg-1", "1.1-2"). | ||
pkginfo = new Pkginfo("all", "application", "Hudson", "project-sysvpkg-1", "1.1-2"). | ||
email(some("[email protected]")) | ||
|
||
success &= assertRelaxed(pkginfo, PkginfoUtil.getPackageInfoForDevice(pkg).some(), packageInfoEqual); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
* @author <a href="mailto:[email protected]">Trygve Laugstøl</a> | ||
*/ | ||
public class DebPackagingFormat | ||
implements PackagingFormat | ||
implements PackagingFormat<DebUnixPackage> | ||
{ | ||
public DebUnixPackage start() | ||
{ | ||
|
Oops, something went wrong.