You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dean Melia <dm...@netspace.net.au> on 2003/12/03 14:10:53 UTC

BUILD FAILED

BUILD FAILED 
file:C:/Ant/bin/build.xml:34: no source files and no packages have been specified. 

Build file contains; 
 <property name="ProjectHome" value="c:/learn/Ex1" /> 
  <property name="src" value="${ProjectHome}/src" /> 
  <property name="build" value="${ProjectHome}/classes" /> 
  <property name="dist" value="${ProjectHome}/lib" /> 
  <property name="docs" value="${ProjectHome}/docs" /> 
- <target name="docs" depends="compile">
  <mkdir dir="${docs}" /> 
  <javadoc packagenames="Exercise1" sourcepath="${src}" destdir="${docs}" /> 
  </target>

Ant -version runs ok from c:/Ant/bin

Scratching my head why it cant find the source and packages? 
Ant 1.5.4
JDK j2sdk1.4.1_06

thanks in anticipation.  

Re: BUILD FAILED

Posted by Dean Melia <dm...@netspace.net.au>.
Thanks for the tip. I was missing the package statement.

----- Original Message -----
From: "Antoine Lévy-Lambert" <an...@antbuild.com>
To: "Ant Users List" <us...@ant.apache.org>
Sent: Thursday, December 04, 2003 12:22 AM
Subject: AW: BUILD FAILED


> Hi Dean,
>
> can you check that you have a directory c:/learn/Ex1/src/Exercise1 with
java
> source files in it ?
>
> if this is the case, the java sources should contain the declaration
package
> Exercise1;
>
> Cheers,
>
> Antoine
>
> -----Ursprüngliche Nachricht-----
> Von: Dean Melia [mailto:dmelia@netspace.net.au]
> Gesendet: Mittwoch, 3. Dezember 2003 14:11
> An: user@ant.apache.org
> Betreff: BUILD FAILED
>
>
> BUILD FAILED
> file:C:/Ant/bin/build.xml:34: no source files and no packages have been
> specified.
>
> Build file contains;
>  <property name="ProjectHome" value="c:/learn/Ex1" />
>   <property name="src" value="${ProjectHome}/src" />
>   <property name="build" value="${ProjectHome}/classes" />
>   <property name="dist" value="${ProjectHome}/lib" />
>   <property name="docs" value="${ProjectHome}/docs" />
> - <target name="docs" depends="compile">
>   <mkdir dir="${docs}" />
>   <javadoc packagenames="Exercise1" sourcepath="${src}" destdir="${docs}"
/>
>   </target>
>
> Ant -version runs ok from c:/Ant/bin
>
> Scratching my head why it cant find the source and packages?
> Ant 1.5.4
> JDK j2sdk1.4.1_06
>
> thanks in anticipation.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


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


AW: BUILD FAILED

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Hi Dean,

can you check that you have a directory c:/learn/Ex1/src/Exercise1 with java
source files in it ?

if this is the case, the java sources should contain the declaration package
Exercise1;

Cheers,

Antoine

-----Ursprüngliche Nachricht-----
Von: Dean Melia [mailto:dmelia@netspace.net.au]
Gesendet: Mittwoch, 3. Dezember 2003 14:11
An: user@ant.apache.org
Betreff: BUILD FAILED


BUILD FAILED
file:C:/Ant/bin/build.xml:34: no source files and no packages have been
specified.

Build file contains;
 <property name="ProjectHome" value="c:/learn/Ex1" />
  <property name="src" value="${ProjectHome}/src" />
  <property name="build" value="${ProjectHome}/classes" />
  <property name="dist" value="${ProjectHome}/lib" />
  <property name="docs" value="${ProjectHome}/docs" />
- <target name="docs" depends="compile">
  <mkdir dir="${docs}" />
  <javadoc packagenames="Exercise1" sourcepath="${src}" destdir="${docs}" />
  </target>

Ant -version runs ok from c:/Ant/bin

Scratching my head why it cant find the source and packages?
Ant 1.5.4
JDK j2sdk1.4.1_06

thanks in anticipation.


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