tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@hyperreal.org
Subject cvs commit: jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs Javac.java
Date Thu, 14 Oct 1999 08:57:18 GMT
akv         99/10/14 01:57:18

  Modified:    .        ant.jar
               ant/src/main/org/apache/tools/ant/taskdefs Javac.java
  Log:
  Simple change to Javac to deal with deprecations.
  
  Revision  Changes    Path
  1.6       +57 -53    jakarta-tools/ant.jar
  
  	<<Binary file>>
  
  
  1.3       +12 -0     jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Javac.java
  
  Index: Javac.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tools/ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Javac.java	1999/10/10 16:29:58	1.2
  +++ Javac.java	1999/10/14 08:57:17	1.3
  @@ -43,6 +43,14 @@
   	compileClasspath = classpath;
       }
   
  +    public void setDeprecation(String deprecation) {
  +        if (deprecation.equalsIgnoreCase("on") || deprecation.equalsIgnoreCase("true"))
  +            this.deprecation = true;
  +        else if (deprecation.equalsIgnoreCase("off") || deprecation.equalsIgnoreCase("false"))
  +            this.deprecation = false;
  +    }
  +    
  +
       public void setDebug(String debugString) {
   	if (debugString.equalsIgnoreCase("on")) {
   	    debug = true;
  @@ -182,6 +190,10 @@
   	project.log("Using classic compiler", project.MSG_VERBOSE);
   	String classpath = getCompileClasspath();
   	Vector argList = new Vector();
  +
  +        if (deprecation == true)
  +            argList.addElement("-deprecation");
  +        
   	argList.addElement("-d");
   	argList.addElement(destDir.getAbsolutePath());
   	argList.addElement("-classpath");
  
  
  

Mime
View raw message