Skip to content

Commits on Source 3

aspectj-maven-plugin (1.11-2) unstable; urgency=medium
* Team upload.
* Use relative paths in the builddef.lst file embedded in the jar
to make the builds reproducible
* Standards-Version updated to 4.4.0
-- Emmanuel Bourg <ebourg@apache.org> Mon, 09 Sep 2019 14:00:02 +0200
aspectj-maven-plugin (1.11-1) unstable; urgency=medium
* New upstream release
......
......@@ -17,7 +17,7 @@ Build-Depends:
libmaven3-core-java,
libplexus-utils2-java (>= 2.0.5),
maven-debian-helper (>= 2.2)
Standards-Version: 4.2.1
Standards-Version: 4.4.0
Vcs-Git: https://salsa.debian.org/java-team/aspectj-maven-plugin.git
Vcs-Browser: https://salsa.debian.org/java-team/aspectj-maven-plugin
Homepage: http://www.mojohaus.org/aspectj-maven-plugin/
......
Description: Use relative paths in the build config file embedded in the jar (builddef.lst) to make the builds reproducible
Author: Emmanuel Bourg <ebourg@apache.org>
Bug: https://github.com/mojohaus/aspectj-maven-plugin/issues/52
--- a/src/main/java/org/codehaus/mojo/aspectj/AbstractAjcCompiler.java
+++ b/src/main/java/org/codehaus/mojo/aspectj/AbstractAjcCompiler.java
@@ -615,7 +615,7 @@
// add target dir argument
ajcOptions.add("-d");
- ajcOptions.add(getOutputDirectory().getAbsolutePath());
+ ajcOptions.add(getOutputDirectory().getAbsolutePath().replaceAll( new File("").getAbsolutePath(), "." ));
// Add all the files to be included in the build,
if (null != ajdtBuildDefFile) {
--- a/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java
+++ b/src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java
@@ -120,6 +120,7 @@
}
cp = StringUtils.replace( cp, "//", "/" );
+ cp = cp.replaceAll( new File("").getAbsolutePath(), "." );
return cp;
}
@@ -175,6 +176,7 @@
for ( String sourceDir : sourceDirs )
{
+ sourceDir = sourceDir.replaceAll( new File("").getAbsolutePath(), "." );
try
{
if ( FileUtils.fileExists( sourceDir ) )
01-relative-path-in-build-config-file.patch