Wrong eclipse generated source directory
----------------------------------------

                 Key: MOJO-1755
                 URL: https://jira.codehaus.org/browse/MOJO-1755
             Project: Mojo
          Issue Type: Bug
          Components: apt
    Affects Versions: apt-maven-plugin-1.0-alpha-5
         Environment: Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: c:\Program Files\Java\jdk1.6.0_22\jre
Default locale: sk_SK, platform encoding: Cp1250
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
            Reporter: Peter Simun
         Attachments: patch_eclipse_path.patch

Wrong generated source directory is written in org.eclipse.jdt.apt.core.prefs 
after mvn apt:eclipse commnand

Configuration:
<outputDirectory>target/generated</outputDirectory>

Output in the org.eclipse.jdt.apt.core.prefs:
org.eclipse.jdt.apt.genSrcDir=\target\generated

Output in the eclipse:
Generated source directory:     argetgenerated

Proposed fix in the EclipseMojo.java:

replace line 135:
out.println( "org.eclipse.jdt.apt.genSrcDir=" + getOutputDirectory().getPath());

with:
String path = getOutputDirectory().getPath().replace( "\\", "/" );
out.println( "org.eclipse.jdt.apt.genSrcDir=" + path);

(patch is attached in the bug report)

--
This message is automatically generated by JIRA.
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