Show
Ignore:
Timestamp:
30.03.2010 17:45:48 (10 years ago)
Author:
ak19
Message:

Jar files now compiled up with debug information included.

Location:
other-projects/gs3-webservices-java-client/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • other-projects/gs3-webservices-java-client/trunk/build.xml

    r21811 r21848  
    6666    <echo>- ant clean</echo> 
    6767    <echo>  for deleting the *.class files from the GS3democlient and GS3Fedora sources</echo> 
    68     <echo>- ant dist-clean</echo> 
     68    <echo>- ant distclean</echo> 
    6969    <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>  
    7070        <echo>- ant update</echo>  
     
    9292</target> 
    9393 
     94<!-- 
     95http://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. 
     97The 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 
    94104<!-- 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.--> 
    95105<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"> 
    97107      <classpath refid="project.classpath"/> 
    98108      <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--> 
     
    114124</target> 
    115125 
    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"> 
    117127   <delete includeEmptyDirs="true" failonerror="false"> 
    118128    <fileset file="${basedir}/GSearchInstaller.jar"/> 
     
    164174    usetimestamp="true" /> 
    165175  <!-- 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"> 
    167177    <include name="**/CheckJavaVersion.java"/> 
    168178  </javac> 
     
    178188  <get src="${gs3forclient.svn.path}/MyNodeList.java" dest="${basedir}/tmp/MyNodeList.java" /> 
    179189  <!-- 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"> 
    181191    <classpath refid="project.classpath"/> 
    182192    <include name="**/*.java"/> 
     
    189199<!-- Targets to generate the project-specific jar files QBRdata.jar and fedoraGS3.jar --> 
    190200<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"> 
    192202      <classpath refid="project.classpath"/> 
    193203   </javac> 
     
    199209 
    200210<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"> 
    202212      <classpath refid="project.classpath"/> 
    203213   </javac> 
     
    208218<!-- Target to generate the standalone (reusable) jar files DLservices.jar --> 
    209219<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"> 
    211221      <classpath refid="project.classpath"/> 
    212222   </javac> 
     
    219229<!-- Target that generates the GSearchInstaller jar file --> 
    220230<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" /> 
    222232   <jar destfile="GSearchInstaller.jar" 
    223233     basedir="${gsearchinstaller.rootdir}/"