ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "N. J. O'Neill" <njone...@llnl.gov>
Subject Re: Odd failure for 1.5Beta3 on Compaq Tru64 Unix
Date Wed, 03 Jul 2002 23:57:47 GMT

At 04:31 PM 7/3/02, Diane wrote:
>Hmm, nothing's jumping out at me... Just out of curiosity, what happens if
>you remove the 'default="program"'?  Next, what happens if you (still with
>the 'defaults' attr removed) change the target's name to "main"?
>
>Diane
>
>=====
>(holtdl@yahoo.com)
>


Removing the attributes and renaming the target to "main" did not have an 
effect.  I was, however, able to get this strangeness to work,



    > cat build.xml
    <project>
      <target name="">
         <echo message="hello world" />
      </target>
    </project>


=======================


    > ant
    + /g/g1/njoneill/jdk1.3.1_compaq/bin/java -classpath /g/g1/
    njoneill/ant/jakarta-ant-1.5Beta3/lib/xml-apis.jar:/g/g1/nj
    oneill/ant/jakarta-ant-1.5Beta3/lib/xercesImpl.jar:/g/g1/nj
    oneill/ant/jakarta-ant-1.5Beta3/lib/optional.jar:/g/g1/njon
    eill/ant/jakarta-ant-1.5Beta3/lib/ant.jar:/g/g1/njoneill/jd
    k1.3.1_compaq/lib/tools.jar -Dant.home=/g/g1/njoneill/ant/j
    akarta-ant-1.5Beta3 org.apache.tools.ant.Main
    Buildfile: build.xml

    :
         [echo] hello world

    BUILD SUCCESSFUL
    Total time: 2 seconds
    + set +x

=======================


But verbose mode doesn't like this situation very much,


    > ant -v
    + /g/g1/njoneill/jdk1.3.1_compaq/bin/java -classpath /g/g1/
    njoneill/ant/jakarta-ant-1.5Beta3/lib/xml-apis.jar:/g/g1/nj
    oneill/ant/jakarta-ant-1.5Beta3/lib/xercesImpl.jar:/g/g1/nj
    oneill/ant/jakarta-ant-1.5Beta3/lib/optional.jar:/g/g1/njon
    eill/ant/jakarta-ant-1.5Beta3/lib/ant.jar:/g/g1/njoneill/jd
    k1.3.1_compaq/lib/tools.jar -Dant.home=/g/g1/njoneill/ant/j
    akarta-ant-1.5Beta3 org.apache.tools.ant.Main -v
    Apache Ant version 1.5Beta3 compiled on June 22 2002
    Buildfile: build.xml
    Detected Java version: 1.3 in: /g/g1/njoneill/jdk1.3.1_compaq/jre
    Detected OS: OSF1
    parsing buildfile build.xml with URI = file:/g/g1/njoneill/junk/build.xml
    Project base dir set to: /g/g1/njoneill/junk

    BUILD FAILED
    Target `main' does not exist in this project.
         at org.apache.tools.ant.Project.tsort (Project.java:1718) (pc 117)
         at org.apache.tools.ant.Project.topoSort (Project.java:1640) (pc 34)
         at org.apache.tools.ant.Project.executeTarget (Project.java:1299) 
(pc 22)
         at org.apache.tools.ant.Project.executeTargets (Project.java:1250) 
(pc 16)
         at org.apache.tools.ant.Main.runBuild (Main.java:606)    (pc 267)
         at org.apache.tools.ant.Main.start (Main.java:195)       (pc 82)
         at org.apache.tools.ant.Main.main (Main.java:234)        (pc 3)

    Total time: 1 second
    + set +x





--Neil


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message