[ 
http://jira.codehaus.org/browse/MASPECTJ-76?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David J. M. Karlsen closed MASPECTJ-76.
---------------------------------------

    Resolution: Fixed

> 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
>            Assignee: David J. M. Karlsen
>             Fix For: 1.3
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> 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


Reply via email to