You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2003/12/31 04:28:39 UTC

[jira] Closed: (MAVEN-1025) ${maven.build.dir} not being substituted

Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Tue, 30 Dec 2003 9:28 PM

this behaviour has been removed as of RC1 - only basedir and system properties get substituted into project.xml now.

Please contact the author of XJavadoc and get them to update their descriptors for RC1. The correct way for them to do this is to preGoal java:compile and add another sourceDirectory to maven.compile.src.set ala the antlr plugin.

---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-1025


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1025
    Summary: ${maven.build.dir} not being substituted
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: WON'T FIX

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
   Versions:
             1.0-rc1

   Assignee: 
   Reporter: Andrew Stevens

    Created: Tue, 11 Nov 2003 12:34 PM
    Updated: Tue, 30 Dec 2003 9:28 PM

Description:
I'm having trouble building the current CVS version of XJavadoc from source.  The maven.xml file contains

    <preGoal name="java:compile">
      <attainGoal name="copysrc"/>
      <attainGoal name="nodeparser"/>
      <attainGoal name="simpleparser"/>
    </preGoal>
    <goal name="copysrc" description="Copies the source code to the target">
      <mkdir dir="${pom.build.sourceDirectory}"/>
      <copy todir="${pom.build.sourceDirectory}">
         <fileset dir="${maven.src.dir}">
            <include name="**/*.java"/>
            <include name="**/package.html"/>
         </fileset>
      </copy>
      <mkdir dir="${pom.build.unitTestSourceDirectory}"/>
      <copy todir="${pom.build.unitTestSourceDirectory}">
         <fileset dir="${basedir}/junit"/>
      </copy>
    </goal>

and the project.xml contains

...
    <build>
        <nagEmailAddress>xdoclet-devel@lists.sourceforge.net</nagEmailAddress>
        <sourceDirectory>${maven.build.dir}/src</sourceDirectory>
        <unitTestSourceDirectory>${maven.build.dir}/junit</unitTestSourceDirectory>
    </build>
</project>

However, running maven (rc1) just produces the output

BUILD FAILED
File...... file:/home/andy/xjavadoc-clean/
Element... mkdir
Line...... 44
Column.... 50
Directory /src creation was not successful for an unknown reason
Total time: 4 seconds

which looks like the "${maven.build.dir}" has been replaced with an empty string instead of "target".  With beta 9 there is no problem.



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org