Add support for relative paths like "META-INF/aop-ajc-arguments.lst" to the
plugin property <ajdtBuildDefFile>
--------------------------------------------------------------------------------------------------------------
Key: MASPECTJ-76
URL: http://jira.codehaus.org/browse/MASPECTJ-76
Project: Mojo AspectJ Plugin
Issue Type: Improvement
Affects Versions: 1.2
Reporter: Torsten Juergeleit
Currently the plugin property {{<ajdtBuildDefFile>}} only supports a file name
but not a relative path. So moving this file into a sub directory like
"META-INF/" within the final jar isn't feasible yet.
This can easily fixed in {{AjcHelper.writeBuildConfigToFile()}}:
{code}
Index: src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java
===================================================================
--- src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java (revision 10299)
+++ src/main/java/org/codehaus/mojo/aspectj/AjcHelper.java (working copy)
@@ -178,8 +178,8 @@
public static void writeBuildConfigToFile( List arguments, String
fileName, File outputDir )
throws IOException
{
- FileUtils.forceMkdir( outputDir );
File argFile = new File( outputDir.getAbsolutePath() , fileName );
+ FileUtils.forceMkdir( argFile.getParentFile() );
argFile.createNewFile();
FileWriter writer = new FileWriter( argFile );
Iterator iter = arguments.iterator();
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email