ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Lecharpentier <adrien.lecharpent...@gmail.com>
Subject Re: ant displaying build successful but output not generated
Date Tue, 18 Jun 2013 05:34:31 GMT
Hi,

it seems there is no default target for your project. Have you specified
one on your command line ? If not, nothing have been done because you
didn't ask ant to do anything, and it finished successfuly because it
didn't do anything as expected.

Regards,
Le 18 juin 2013 05:47, "jaya choudhary" <cse.jaya@gmail.com> a écrit :

> I am using the following build.xml file
> <project name="sample">
> <property file="build.properties"/>
> <property name="src" location="src"/>
> <property name="bin" location="bin"/>
> <property name="sql" location="sql"/>
> <property name="hibernate.tools"
> value="${hibernate.tools.home}${hibernate.tools.path}"/>
> <echo>Apache Ant version is ${ant.version} ${hibernate.tools}
> </echo>
>
> <path id="classpath.base">
> <pathelement location="${src}"/>
> <pathelement location="${bin}"/>
> <pathelement location="${hibernate.home}/hibernate3.jar"/>
> <fileset dir="${hibernate.home}/lib" includes="**/*.jar"/>
> <pathelement location="${mysql.home}/mysql-connector-java-5.1.25-bin.jar"/>
> </path>
> <echo message="${toString:classpath.base}"/>
>
> <path id="classpath.tools">
> <path refid="classpath.base"/>
> <pathelement
> location="${hibernate.tools}/hibernate-tools.jar"/>
> </path>
> <echo message="${toString:classpath.tools}"/>
> <echo> ${sql}</echo>
> <taskdef name="htools"
> classname="org.hibernate.tool.ant.HibernateToolTask"
> classpathref="classpath.tools"/>
> <target name="exportDDL" depends="compile">
> <htools destdir="${sql}">
> <classpath refid="classpath.tools"/>
> <configuration file="${src}/hibernate.cfg.xml"/>
> <hbm2ddl drop="true" outputfilename="sample.sql"/>
> </htools>
> </target>
> <target name="compile">
> <javac srcdir="${src}" destdir="${bin}" classpathref="classpath.base"/>
> </target>
> <target name="populateMessages" depends="compile">
> <java classname="sample.PopulateMessages" classpathref="classpath.base"/>
> </target>
> <target name="listMessages" depends="compile">
> <java classname="sample.ListMessages" classpathref="classpath.base"/>
> </target>
> <target name="createUsers" depends="compile">
> <java classname="sample.CreateUser" classpathref="classpath.base">
> <arg value="dave"/>
> <arg value="dodgy"/>
> </java>
> <java classname="sample.CreateUser" classpathref="classpath.base">
> <arg value="jeff"/>
> <arg value="jammy"/>
> </java>
> </target>
> <target name="createCategories" depends="compile">
> <java classname="sample.CreateCategory" classpathref="classpath.base">
> <arg value="retro"/>
> </java>
> <java classname="sample.CreateCategory" classpathref="classpath.base">
> <arg value="kitsch"/>
> </java>
> </target>
> <target name="postAdverts" depends="compile">
> <java classname="sample.PostAdvert" classpathref="classpath.base">
> <arg value="dave"/>
> <arg value="retro"/>
> <arg value="Sinclair Spectrum for sale"/>
> <arg value="48k original box and packaging"/>
> </java>
> <java classname="sample.PostAdvert" classpathref="classpath.base">
> <arg value="dave"/>
> <arg value="kitsch"/>
> <arg value="Commemorative Plates"/>
> <arg value="Kitten and puppies design"/>
> </java>
> <java classname="sample.PostAdvert" classpathref="classpath.base">
> <arg value="jeff"/>
> <arg value="retro"/>
> <arg value="Atari 2600 wanted"/>
> <arg value="Must have original joysticks."/>
> </java>
> <java classname="sample.PostAdvert" classpathref="classpath.base">
> <arg value="jeff"/>
> <arg value="kitsch"/>
> <arg value="Inflatable Sofa"/>
> <arg value="Leopard skin pattern. Nice."/>
> </java>
> </target>
> <target name="listAdverts" depends="compile">
> <java classname="sample.ListAdverts" classpathref="classpath.base"/>
> </target>
> </project>
>
> On running ant Build successful is displayed but none of the target is
> executed?
> ant -debug ends with:
> Setting ro project property: ant.project.invoked-targets ->
> Attempting to create object of type
> org.apache.tools.ant.helper.DefaultExecutor
> Adding reference: ant.executor
>
> BUILD SUCCESSFUL
> Total time: 0 seconds
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message