[
http://jira.codehaus.org/browse/MOJO-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Hobson closed MOJO-1478.
-----------------------------
Resolution: Fixed
Hopefully now resolved by separating {{-d}} and {{-s}} paths:
* {{outputDirectory}} now sets {{-d}} instead of {{-s}}
* changed {{outputDirectory}} default value to:
{{$\{project.build.directory\}/generated-[test-]resources/apt}} (i.e.
resources, not sources)
* added {{sourceOutputDirectory}} to set {{-s}}, which defaults to:
{{$\{project.build.directory\}/generated-[test-]sources/apt}}
* changed the existing tests to use {{CLASS_TREE}}, and hence test {{-d}}
* add {{apt-source-test}} to use {{SOURCE_TREE}} and test {{-s}}
> Distinguish between -d and -s correctly when invoking apt
> ---------------------------------------------------------
>
> Key: MOJO-1478
> URL: http://jira.codehaus.org/browse/MOJO-1478
> Project: Mojo
> Issue Type: Bug
> Components: apt
> Affects Versions: apt-maven-plugin-1.0-alpha-2
> Environment: Mac OSX, JDK 1.6, mvn 2.2.1, apt-maven-plugin 1.0-alpha-3
> Reporter: Peter Lynch
> Assignee: Mark Hobson
> Fix For: apt-maven-plugin-1.0-alpha-4
>
> Attachments: MOJO-1478.patch
>
>
> setting the outputDirectory on the apt config causes it to be passed to apt
> executable using the '-s' option.
> Unfortunately this does not work. Instead sources get put in the directory
> where mvn is launched.
> Comparing this behavior with the way Ant invokes apt shows that Ant uses '-d'
> option in all cases, whether compiling or not - and it works so a similar
> change to apt-maven-plugin would seem very safe and cause it to work as
> documented and described.
> Attached is a patch which fixes this.
--
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