You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Andrew Premdas <An...@man.ac.uk> on 2003/11/14 17:15:07 UTC

Creating the Sample Application (build fails)

TDK 2.2a
OS Windows XP
Ant version 1.5.3

Build fails when generating peer based object model info below and relevant
section from ant build file.

Any help would be most appreciated.

All best

Andrew

----
project-om:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating Peer-based Object Model for   |
     [echo] | YOUR Turbine project! Woo hoo!           |
     [echo] |                                          |
     [echo] +------------------------------------------+
[torque-om]
C:\apache\turbine\tdk\webapps\newapp\WEB-INF\src\java\report.newapp.om.gener
ation
     [echo]
     [echo]         debug:: ../src/java    org/mycompany/newapp/om
     [echo]
[format-source] Formatting 5 files
[format-source] Error: java.io.FileNotFoundException: C (The system cannot
find the file specified)

BUILD FAILED
file:C:/apache/turbine/tdk/webapps/newapp/WEB-INF/build/build.xml:203:
Failed to copy
C:\apache\turbine\tdk\webapps\newapp\WEB-INF\src\java\org\mycompany\newapp\o
m\BaseRdfPeer.java to
C:\apache\turbine\tdk\webapps\newapp\WEB-INF\build\BaseRdfPeer.java due to
null
-----

Note: the file BaseRdfPeer.java is on my system in the path specified

this corresponds to the ant section

----
 <target name="project-om" depends="init-tasks"
          description="--> generates the peer-based object model for your
project">

    <echo message="+------------------------------------------+"/>
    <echo message="|                                          |"/>
    <echo message="| Generating Peer-based Object Model for   |"/>
    <echo message="| YOUR Turbine project! Woo hoo!           |"/>
    <echo message="|                                          |"/>
    <echo message="+------------------------------------------+"/>

    <torque-om
      contextProperties="${build.properties}"
      controlTemplate="${OMControlTemplate}"
      outputDirectory="${outputDirectory}/java"
      templatePath="${templatePath}"
      outputFile="report.${project}.om.generation"
      targetPackage="${targetPackage}.om"
      xmlFile="${schemaDirectory}/${project}-schema.xml"
    />

    <echo>
        debug:: ${src.dir}    ${targetDirectory}
    </echo>

    <format-source>
      <fileset dir="${src.dir}/${targetDirectory}">
        <include name="**/*.java"/>
      </fileset>
    </format-source>

  </target>
----

Andrew Premdas
Student Systems Developer
Manchester University


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org