Changeset 21848 for other-projects
- Timestamp:
- 2010-03-30T17:45:48+13:00 (14 years ago)
- Location:
- other-projects/gs3-webservices-java-client/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/gs3-webservices-java-client/trunk/build.xml
r21811 r21848 66 66 <echo>- ant clean</echo> 67 67 <echo> for deleting the *.class files from the GS3democlient and GS3Fedora sources</echo> 68 <echo>- ant dist -clean</echo>68 <echo>- ant distclean</echo> 69 69 <echo> for deleting the *.class files from the sources, the QBRdata.jar, fedoraGS3.jar, executable jar file, and any zips of the project folder</echo> 70 70 <echo>- ant update</echo> … … 92 92 </target> 93 93 94 <!-- 95 http://ananthkannan.blogspot.com/2009/12/java-exception-unknown-source.html 96 "Sometimes when debugging application we may run into this exception - Java Exception unknown source. 97 The possible reason could be when compiling the application, javac ant tasks omits debug option by defaut. So we will have to explicity set debug flag to true. See the javac ant task documentation for more info. You can mention some thing like below: 98 99 <target name="compile"> 100 <javac srcdir="${src.dir}" destdir="{dest.dir}." debug="on" debuglevel="lines,vars,source" /> 101 </target>" 102 --> 103 94 104 <!-- Compilation first ensures the existence of QBRdata.jar AND fedoraGS3.jar by checking whether these jars already exist and, if not, generating them. It is then that the actual compilation of the GS3democlient starts. By now the QBRdata classes of the GS3democlient src folder would have been compiled, but that does not matter as javac only compiles when class files are outdated or when they have not been generated yet.--> 95 105 <target name="compile-demo-client" description="Compiles the GS3 demo-client" depends="ensure-QBRdata-jar,ensure-fedoraGS3-jar,ensure-gs3-for-client"> 96 <javac srcdir="${democlient.rootdir}" >106 <javac srcdir="${democlient.rootdir}" debug="on" debuglevel="lines,vars,source"> 97 107 <classpath refid="project.classpath"/> 98 108 <exclude name="${gs3services.rel.path}/**" /> <!--gs3services package needs official gsdl.jar to compile, so we skip it as it is not part of the client anyway--> … … 114 124 </target> 115 125 116 <target name="dist -clean" description="Removes the project-specific jars fedoraGS3.jar, QBRdata.jar, ${exec.jar.name} files AND all class files from the GS3DemoClient, GS3Fedora and GSearchInstaller source folders" depends="clean">126 <target name="distclean" description="Removes the project-specific jars fedoraGS3.jar, QBRdata.jar, ${exec.jar.name} files AND all class files from the GS3DemoClient, GS3Fedora and GSearchInstaller source folders" depends="clean"> 117 127 <delete includeEmptyDirs="true" failonerror="false"> 118 128 <fileset file="${basedir}/GSearchInstaller.jar"/> … … 164 174 usetimestamp="true" /> 165 175 <!-- compile it up: specifying the file to be compiled explicitly (sourcepath="")--> 166 <javac sourcepath="" srcdir="${basedir}" destdir="${basedir}" >176 <javac sourcepath="" srcdir="${basedir}" destdir="${basedir}" debug="on" debuglevel="lines,vars,source"> 167 177 <include name="**/CheckJavaVersion.java"/> 168 178 </javac> … … 178 188 <get src="${gs3forclient.svn.path}/MyNodeList.java" dest="${basedir}/tmp/MyNodeList.java" /> 179 189 <!-- compile it up: specifying the file to be compiled explicitly --> 180 <javac srcdir="${basedir}/tmp" destdir="${basedir}/tmp" >190 <javac srcdir="${basedir}/tmp" destdir="${basedir}/tmp" debug="on" debuglevel="lines,vars,source"> 181 191 <classpath refid="project.classpath"/> 182 192 <include name="**/*.java"/> … … 189 199 <!-- Targets to generate the project-specific jar files QBRdata.jar and fedoraGS3.jar --> 190 200 <target name="QBRdatajar" description="Compiles and creates the QBRdata.jar file needed by GS3demo-client"> 191 <javac srcdir="${democlient.rootdir}/${QBRdata.rel.path}" >201 <javac srcdir="${democlient.rootdir}/${QBRdata.rel.path}" debug="on" debuglevel="lines,vars,source"> 192 202 <classpath refid="project.classpath"/> 193 203 </javac> … … 199 209 200 210 <target name="fedoraGS3jar" description="Compiles and creates the fedoraGS3.jar file needed by GS3demo-client"> 201 <javac srcdir="${fedorags3.rootdir}" >211 <javac srcdir="${fedorags3.rootdir}" debug="on" debuglevel="lines,vars,source"> 202 212 <classpath refid="project.classpath"/> 203 213 </javac> … … 208 218 <!-- Target to generate the standalone (reusable) jar files DLservices.jar --> 209 219 <target name="DLservicesjar" description="Compiles and creates the DLservices.jar standalone, reusable library file"> 210 <javac srcdir="${democlient.rootdir}/${dlservices.rel.path}" >220 <javac srcdir="${democlient.rootdir}/${dlservices.rel.path}" debug="on" debuglevel="lines,vars,source"> 211 221 <classpath refid="project.classpath"/> 212 222 </javac> … … 219 229 <!-- Target that generates the GSearchInstaller jar file --> 220 230 <target name="GSearchInstallerjar" description="Compiles and creates the jar file for the stand-alone GSearchInstaller application"> 221 <javac srcdir="${gsearchinstaller.rootdir}" />231 <javac srcdir="${gsearchinstaller.rootdir}" debug="on" debuglevel="lines,vars,source" /> 222 232 <jar destfile="GSearchInstaller.jar" 223 233 basedir="${gsearchinstaller.rootdir}/"
Note:
See TracChangeset
for help on using the changeset viewer.