ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@antbuild.com>
Subject AW: BUILD SUCCESSFUL?
Date Mon, 29 Sep 2003 11:44:22 GMT
Hi Paul,

I think you should read the manual under http://ant.apache.org

Your build file does not contain the instructions necessary to build a war
file.

It should contain the <war/> task to build a war file.

Ant does not yet detect automatically what should be the deliverables of
your project.


Cheers,

Antoine

-----Ursprungliche Nachricht-----
Von: Paul Wallace [mailto:paul_wallace@optusnet.com.au]
Gesendet: Montag, 29. September 2003 13:34
An: user@ant.apache.org
Betreff: BUILD SUCCESSFUL?


Hello,
            After running my first attempt at Ant on a very simple
couple of compiled Java classes, I get various messages during execution
(below). It seems to have built the WAR successfully, but I fail to see
find any trace of the said WAR file? I am running Ant, in the same
directory as build.xml generated by the Eclipse IDE using the standard
doclet. The optional JAVA_HOME is not yet set.
            While the process is creating lovely documentation, I really
desire a WAR file. Any thoughts? Please be gentle.

Paul.

>From dos window:

C:\projects\ant\Jsrc>ant

Warning: JAVA_HOME environment variable is not set.
  If build fails because sun.* classes could not be found
  you will need to set the JAVA_HOME environment variable
  to the installation directory of java.

Buildfile: build.xml

javadoc:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package com.ant.admin...
  [javadoc] Loading source files for package com.ant.servlets...
  [javadoc] Constructing Javadoc information...
  [javadoc] Standard Doclet version 1.4.1

  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] C:\projects\ant\Jsrc\com\ant\admin\MyObject.java:24: warning
- @return tag has no arguments.
  [javadoc] C:\projects\ant\Jsrc\com\ant\admin\MyObject.java:31: warning
- @return tag has no arguments.
  [javadoc] Building index for all classes...
  [javadoc] Generating C:\projects\ant\doc\stylesheet.css...
  [javadoc] 2 warnings

BUILD SUCCESSFUL
Total time: 2 seconds
C:\projects\ant\Jsrc>

Build.xml:

  <?xml version="1.0" encoding="UTF-8" ?>
- <project name="ant" default="javadoc">
- <target name="javadoc">
  <javadoc destdir="C:\projects\ant\doc" access="public" use="true"
notree="false" nonavbar="false" noindex="false" splitindex="true"
author="true" version="true" nodeprecatedlist="false"
nodeprecated="false" packagenames="com.ant.admin,com.ant.servlets"
sourcepath="."
classpath="C:\s1studio_jdk\s1studio\tomcat401\webapps\ant\WEB-INF\classe
s;C:\s1studio_jdk\s1studio\tomcat401\common\lib\servlet.jar" />
  </target>
  </project>



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


Mime
View raw message