[ 
http://jira.codehaus.org/browse/MOJO-1609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=247030#action_247030
 ] 

Thomas Ferris Nicolaisen commented on MOJO-1609:
------------------------------------------------

Oh, and by the way, maybe this should be another bug-report, but I'll just 
paste it in here:

apt:eclipse generates a path for "Generated source directory" with a leading 
slash that Eclipse won't grok. For example:
{code}
<outputDirectory>src-generated</outputDirectory>
{code}

.. produces this configuration directory:
{code}
org.eclipse.jdt.apt.genSrcDir=/src-generated 
{code}
..resulting in that Eclipse won't do annotation processing.

I quickfixed it by just substringing away the slash in the EclipseMojo.java, 
but maybe you've got some ideas for a better solution..

> EclipseMojo creates factory path entries with trailing whitespace
> -----------------------------------------------------------------
>
>                 Key: MOJO-1609
>                 URL: http://jira.codehaus.org/browse/MOJO-1609
>             Project: Mojo
>          Issue Type: Bug
>          Components: apt
>    Affects Versions: apt-maven-plugin-1.0-alpha-4
>         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_22
> Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Default locale: en_US, platform encoding: MacRoman
> OS name: "mac os x" version: "10.5.8" arch: "x86_64" Family: "mac"
>            Reporter: Thomas Ferris Nicolaisen
>         Attachments: eclipse-mojo-whitespace.patch
>
>
> Invoking mvn apt:eclipse creates a .factorypath file with entries that 
> contain trailing whitespaces:
> {code}
> <factorypath> 
>     <factorypathentry kind="EXTJAR" 
> id="/Users/tfnico/projects/apt-maven-plugin-testing/target/classes " 
> enabled="true" runInBatchMode="false"/>
>     <factorypathentry kind="VARJAR" 
> id="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar " enabled="true" 
> runInBatchMode="false"/>
> </factorypath> 
> {code}
> Easy to recreate: mvn archetype:generate a new simple project with default 
> values. Edit the pom.xml, make junit compile scope, paste in the 
> apt-maven-plugin config, run mvn apt:eclipse.
> Recreated this in trunk of the plugin (r13275). The problem is caused by a 
> tiny typo in the EclipseMojo. Attached a patch that resolves it, at least on 
> my system.

-- 
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