问题描述
build.xml文件:<?xmlversion="1.0"?><projectname="jixiaoweb"default="deploy"><description>绩效系统</description><propertyname="src.dir"location="javasrc/prod"/><propertyname="testsrc.dir"location="javasrc/test"/><propertyname="doc.dir"location="doc"/><propertyname="index.dir"location="index"/><propertyname="build.dir"location="classes"/><propertyname="build.test.dir"location="${build.dir}/test"/><propertyname="build.prod.dir"location="${build.dir}/prod"/><propertyname="appcommonbuild.dir"location="../appcommon/build"/><propertyname="appcommonbuild.test.dir"location="${appcommonbuild.dir}/test"/><propertyname="appcommonbuild.prod.dir"location="${appcommonbuild.dir}/prod"/><propertyname="workjournalingeditbuild.dir"location="../WorkJournalingEditorCom/build"/><propertyname="workjournalingeditbuild.test.dir"location="${workjournalingeditbuild.dir}/test"/><propertyname="workjournalingeditbuild.prod.dir"location="${workjournalingeditbuild.dir}/prod"/><propertyname="vendor.lib.dir"location="vendor/lib"/><propertyname="test.data.dir"location="${build.test.dir}/data"/><propertyname="test.report.dir"location="${build.test.dir}/report"/><propertyname="junit.jar"location="D:eclipsepluginsorg.junit_3.8.2.v20080602-1318"/><propertyname="tomcat.lib.dir"location="E:jixiaojakarta-tomcat-5.0.24commonlib"/><propertyname="iman.dir"location="D:MyDocuments桌面jixiaoimanwebWebContentclasses"/><propertyname="struts.jar"location="D:MyDocuments桌面jixiaoimanwebWebContentWEB-INFlib"/><pathid="project.classpath"><pathelementlocation="${junit.jar}"/><pathelementlocation="${build.prod.dir}"/><pathelementlocation="${build.test.dir}"/><pathelementlocation="${appcommonbuild.prod.dir}"/><pathelementlocation="${appcommonbuild.test.dir}"/><pathelementlocation="${workjournalingeditbuild.prod.dir}"/><pathelementlocation="${workjournalingeditbuild.test.dir}"/><pathelementlocation="E:jixiaojxwebWebContentclasses"/><pathelementlocation="${struts.jar}"/><filesetdir="${tomcat.lib.dir}"><includename="*.jar"/></fileset><filesetdir="${vendor.lib.dir}"><includename="*.jar"/></fileset><filesetdir="${iman.dir}"><includename="*.jar"/></fileset></path><targetname="prepare"><deletedir="${build.prod.dir}"/><deletedir="${build.test.dir}"/><mkdirdir="${build.prod.dir}"/><mkdirdir="${build.test.dir}"/><deletedir="${test.data.dir}"/><deletedir="${test.report.dir}"/><mkdirdir="${test.data.dir}"/><mkdirdir="${test.report.dir}"/></target><targetname="compile"depends="prepare"><javacsrcdir="${src.dir}"destdir="${build.prod.dir}"source="1.5"target="1.5"><classpathrefid="project.classpath"/></javac><copytodir="${build.prod.dir}"><filesetdir="${src.dir}"><includename="**/*.properties"/><includename="**/*.gif"/><includename="**/*.jpg"/><includename="**/*.xml"/><includename="**/*.key"/></fileset></copy></target><targetname="compile-tests"depends="compile"><javacsrcdir="${testsrc.dir}"destdir="${build.test.dir}"><classpathrefid="project.classpath"/></javac></target><targetname="deploy"depends="compile-tests"><copytodir="WebContentclasses"><filesetdir="${build.prod.dir}"/></copy><copytodir="WebContentWEB-INFclasses"><filesetdir="${build.prod.dir}"/></copy><copytodir="WebContentWEB-INFclasses"><filesetdir="../appcommon/build/prod"/></copy><copytodir="WebContentclasses"><filesetdir="../appcommon/build/prod"/></copy><copytodir="WebContentWEB-INFclasses"><filesetdir="../WorkJournalingEditorCom/build/prod"/></copy><copytodir="WebContentclasses"><filesetdir="../WorkJournalingEditorCom/build/prod"/></copy><copytodir="E:jixiaojxwebWebContent"><filesetdir="WebContent"><excludename="**/classes/**"/></fileset></copy><copytodir="E:jixiaojxwebWebContentWEB-INFclasses"><filesetdir="WebContentWEB-INFclasses"/></copy><jardestfile="E:jxwebWebContentjixiao.jar"index="true"><filesetdir="WebContentclasses"/></jar></target></project>运行结果是:Buildfile:D:workspacejixiaobuild.xmlprepare:[delete]DeletingdirectoryD:workspacejixiaoclassesprod[delete]DeletingdirectoryD:workspacejixiaoclassestest[mkdir]Createddir:D:workspacejixiaoclassesprod[mkdir]Createddir:D:workspacejixiaoclassestest[mkdir]Createddir:D:workspacejixiaoclassestestdata[mkdir]Createddir:D:workspacejixiaoclassestestreportcompile:[javac]Compiling209sourcefilestoD:workspacejixiaoclassesprod为什么没有出现buildsuccessful
解决方案
解决方案二:
两个问题你是在那里运行这个XML的还有你运行完毕没有呢?
解决方案三:
我在eclipse中运行的啊,运行完毕没有是什么意思?