jsalvata    2003/01/10 16:15:36

  Modified:    .        build.xml
  Log:
  Made diagnosing usage of deprecated APIs easier.
  
  Revision  Changes    Path
  1.83      +12 -8     jakarta-jmeter/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/build.xml,v
  retrieving revision 1.82
  retrieving revision 1.83
  diff -u -r1.82 -r1.83
  --- build.xml 10 Jan 2003 15:42:04 -0000      1.82
  +++ build.xml 11 Jan 2003 00:15:36 -0000      1.83
  @@ -7,6 +7,9 @@
         ./build.sh install
       For more info:
         ./build.sh -projecthelp
  +
  +    To diagnose usage of deprecated APIs:
  +      ./build.sh -Ddeprecation=on clean compile
     </description>
   
     <!-- JMeter version -->
  @@ -62,6 +65,7 @@
   
     <!-- Compilation parameters -->
     <property name="optimize" value="on"/>
  +  <property name="deprecation" value="off"/>
   
     <!-- List of Unix executable files in the binary distribution -->
     <property name="dist.executables" value="bin/jmeter bin/jmeter-server"/>
  @@ -148,7 +152,7 @@
       <replaceregexp file="${src.core}/org/apache/jmeter/util/JMeterUtils.java"
        match="VERSION=&quot;.*?&quot;"
        replace="VERSION=&quot;${version}&quot;"/>
  -    <javac srcdir="${src.core}" destdir="${build.core}" optimize="${optimize}" 
debug="on" target="1.3">
  +    <javac srcdir="${src.core}" destdir="${build.core}" optimize="${optimize}" 
debug="on" target="1.3" deprecation="${deprecation}">
         <include name="**/*.java"/>
         <exclude name="org/apache/jmeter/util/JsseSSLManager.java" 
unless="jsse.present"/>
         <exclude name="org/apache/jmeter/util/IaikSSLManager.java" 
unless="isasilk.present"/>
  @@ -164,7 +168,7 @@
   
     <target name="compile-components" depends="compile-jorphan,compile-core" 
description="Compile generic (protocol-independent) components.">
       <mkdir dir="${build.components}"/>
  -    <javac srcdir="${src.components}" destdir="${build.components}" 
optimize="${optimize}" debug="on" target="1.3">
  +    <javac srcdir="${src.components}" destdir="${build.components}" 
optimize="${optimize}" debug="on" target="1.3" deprecation="${deprecation}">
         <include name="**/*.java"/>
         <exclude name="org/apache/jmeter/visualizers/MailerVisualizer.java" 
unless="javamail.complete"/>
         <exclude name="org/apache/jmeter/visualizers/MailerModel.java" 
unless="javamail.complete"/>
  @@ -179,7 +183,7 @@
   
     <target name="compile-functions" depends="compile-jorphan,compile-core" 
description="Compile functions.">
       <mkdir dir="${build.functions}"/>
  -    <javac srcdir="${src.functions}" destdir="${build.functions}" 
optimize="${optimize}" debug="on" target="1.3">
  +    <javac srcdir="${src.functions}" destdir="${build.functions}" 
optimize="${optimize}" debug="on" target="1.3" deprecation="${deprecation}">
         <include name="**/*.java"/>
         <classpath>
           <path refid="classpath"/>
  @@ -191,7 +195,7 @@
   
     <target name="compile-http" depends="compile-jorphan,compile-core" 
description="Compile components specific to HTTP sampling.">
       <mkdir dir="${build.http}"/>
  -    <javac srcdir="${src.http}" destdir="${build.http}" optimize="${optimize}" 
debug="on" target="1.3">
  +    <javac srcdir="${src.http}" destdir="${build.http}" optimize="${optimize}" 
debug="on" target="1.3" deprecation="${deprecation}">
         <include name="**/*.java"/>
         <classpath>
           <path refid="classpath"/>
  @@ -203,7 +207,7 @@
   
     <target name="compile-ftp" depends="compile-jorphan,compile-core" 
description="Compile components specific to FTP sampling.">
       <mkdir dir="${build.ftp}"/>
  -    <javac srcdir="${src.ftp}" destdir="${build.ftp}" optimize="${optimize}" 
debug="on" target="1.3">
  +    <javac srcdir="${src.ftp}" destdir="${build.ftp}" optimize="${optimize}" 
debug="on" target="1.3" deprecation="${deprecation}">
         <include name="**/*.java"/>
         <classpath>
           <path refid="classpath"/>
  @@ -215,7 +219,7 @@
   
     <target name="compile-jdbc" depends="compile-jorphan,compile-core" 
description="Compile components specific to JDBC sampling.">
       <mkdir dir="${build.jdbc}"/>
  -    <javac srcdir="${src.jdbc}" destdir="${build.jdbc}" optimize="${optimize}" 
debug="on" target="1.3">
  +    <javac srcdir="${src.jdbc}" destdir="${build.jdbc}" optimize="${optimize}" 
debug="on" target="1.3" deprecation="${deprecation}">
         <include name="**/*.java"/>
         <classpath>
           <path refid="classpath"/>
  @@ -227,7 +231,7 @@
   
     <target name="compile-java" depends="compile-jorphan,compile-core" 
description="Compile components specific to Java sampling.">
       <mkdir dir="${build.java}"/>
  -    <javac srcdir="${src.java}" destdir="${build.java}" optimize="${optimize}" 
debug="on" target="1.3">
  +    <javac srcdir="${src.java}" destdir="${build.java}" optimize="${optimize}" 
debug="on" target="1.3" deprecation="${deprecation}">
         <include name="**/*.java"/>
         <classpath>
           <path refid="classpath"/>
  @@ -241,7 +245,7 @@
   
     <target name="compile-jorphan" depends="init" description="Compile JOrphan 
utility classes.">
       <mkdir dir="${build.jorphan}"/>
  -    <javac srcdir="${src.jorphan}" destdir="${build.jorphan}" 
optimize="${optimize}" debug="on" target="1.3">
  +    <javac srcdir="${src.jorphan}" destdir="${build.jorphan}" 
optimize="${optimize}" debug="on" target="1.3" deprecation="${deprecation}">
         <include name="**/*.java"/>
         <classpath>
           <path refid="classpath"/>
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to