Browse Source

Converted remainder of the optional tasks into the hierarchy o.a.t.todo rather than o.a.t.ant so as not to clash with ant1 compatability later

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@271879 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
eaa1f3e7ce
19 changed files with 52 additions and 51 deletions
  1. +6
    -7
      proposal/myrmidon/build.xml
  2. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/ANTLR.java
  3. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/Cab.java
  4. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/ClassArgument.java
  5. +5
    -5
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/Entry.java
  6. +4
    -4
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/IContract.java
  7. +3
    -2
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/Javah.java
  8. +3
    -3
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/NetRexxC.java
  9. +2
    -2
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/Script.java
  10. +1
    -1
      proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/stylebook/StyleBook.java
  11. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/ANTLR.java
  12. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/Cab.java
  13. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/ClassArgument.java
  14. +5
    -5
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/Entry.java
  15. +4
    -4
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/IContract.java
  16. +3
    -2
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/Javah.java
  17. +3
    -3
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/NetRexxC.java
  18. +2
    -2
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/Script.java
  19. +1
    -1
      proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/stylebook/StyleBook.java

+ 6
- 7
proposal/myrmidon/build.xml View File

@@ -276,7 +276,6 @@ Legal:
<property name="ant.package" value="org/apache/tools/todo"/>
<property name="taskdef.package" value="${ant.package}/taskdefs"/>
<property name="antlib.package" value="org/apache/antlib"/>
<property name="optional.package" value="org/apache/tools/ant/taskdefs/optional"/>
<property name="optional.type.package" value="${ant.package}/types/optional"/>
<property name="util.package" value="${ant.package}/util"/>
<property name="regexp.package" value="${util.package}/regexp"/>
@@ -294,19 +293,19 @@ Legal:
<exclude name="${ant.package}/listener/Log4jListener.java"
unless="log4j.present" />

<exclude name="${optional.package}/IContract.java"
<exclude name="${taskdefs.package}/IContract.java"
unless="icontract.present" />
<exclude name="${optional.package}/Script.java"
<exclude name="${taskdefs.package}/Script.java"
unless="bsf.present" />
<exclude name="${optional.package}/StyleBook.java"
<exclude name="${taskdefs.package}/stylebook/StyleBook.java"
unless="stylebook.present" />
<exclude name="${optional.package}/NetRexxC.java"
<exclude name="${taskdefs.package}/NetRexxC.java"
unless="netrexx.present" />
<exclude name="${antlib.package}/xml/TraXLiaison.java"
unless="trax.present" />
<exclude name="${antlib.package}/xml/XalanLiaison.java"
unless="xalan.present" />
<exclude name="${optional.package}/Javah.java"
<exclude name="${taskdefs.package}/Javah.java"
unless="jdk1.2+" />
<exclude name="${taskdef.package}/junit/*"
unless="junit.present" />
@@ -316,7 +315,7 @@ Legal:
unless="javamail.complete" />
<exclude name="${taskdef.package}/scm/AntStarTeam*.java"
unless="starteam.present" />
<exclude name="${optional.package}/ANTLR.java"
<exclude name="${taskdefs.package}/ANTLR.java"
unless="antlr.present" />
<exclude name="${taskdef.package}/perforce/*.java"
unless="jakarta.oro.present" />


proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/ANTLR.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/ANTLR.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.BufferedReader;
import java.io.File;
@@ -223,7 +223,7 @@ public class ANTLR extends AbstractTask
*
* @param command Description of Parameter
* @return Description of the Returned Value
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private int run( final Commandline command )
throws TaskException

proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Cab.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/Cab.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.File;
import java.io.FileOutputStream;
@@ -280,7 +280,7 @@ public class Cab
*
* @param files Description of Parameter
* @return Description of the Returned Value
* @exception IOException Description of Exception
* @exception java.io.IOException Description of Exception
*/
protected File createListFile( ArrayList files )
throws IOException

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/ClassArgument.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/ClassArgument.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

public class ClassArgument
{

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Entry.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/Entry.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.text.DateFormat;
import java.text.DecimalFormat;
@@ -120,7 +120,7 @@ public class Entry
/**
* Check if parameter combinations can be supported
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void checkParameters()
throws TaskException
@@ -151,7 +151,7 @@ public class Entry
* @param oldValue the current value read from the property file or
* <code>null</code> if the <code>key</code> was not contained in
* the property file.
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void executeDate( String oldValue )
throws TaskException
@@ -282,7 +282,7 @@ public class Entry
* @param oldValue the current value read from the property file or
* <code>null</code> if the <code>key</code> was not contained in
* the property file.
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void executeInteger( String oldValue )
throws TaskException
@@ -372,7 +372,7 @@ public class Entry
* @param oldValue the current value read from the property file or
* <code>null</code> if the <code>key</code> was not contained in
* the property file.
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void executeString( String oldValue )
throws TaskException

proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/IContract.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/IContract.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.File;
import java.io.FileInputStream;
@@ -672,7 +672,7 @@ public class IContract extends MatchingTask
/**
* Executes the task
*
* @exception TaskException if the instrumentation fails
* @exception org.apache.myrmidon.api.TaskException if the instrumentation fails
*/
public void execute()
throws TaskException
@@ -875,7 +875,7 @@ public class IContract extends MatchingTask
/**
* Checks that the required attributes are set.
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void preconditions()
throws TaskException
@@ -914,7 +914,7 @@ public class IContract extends MatchingTask
* Also creates a temporary file with a list of the source files, that will
* be deleted upon exit.
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void scan()
throws TaskException

proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Javah.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/Javah.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.File;
import java.util.ArrayList;
@@ -18,6 +18,7 @@ import org.apache.myrmidon.api.TaskContext;
import org.apache.tools.todo.types.Commandline;
import org.apache.tools.todo.types.Path;
import org.apache.tools.todo.util.FileUtils;
import org.apache.tools.todo.taskdefs.ClassArgument;

/**
* Task to generate JNI header files using javah. This task can take the
@@ -308,7 +309,7 @@ public class Javah
* Peforms a compile using the classic compiler that shipped with JDK 1.1
* and 1.2.
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/

private void doClassicCompile()

proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/NetRexxC.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/NetRexxC.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.File;
import java.io.IOException;
@@ -477,7 +477,7 @@ public class NetRexxC extends MatchingTask
/**
* Executes the task, i.e. does the actual compiler call
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
public void execute()
throws TaskException
@@ -639,7 +639,7 @@ public class NetRexxC extends MatchingTask
/**
* Peforms a copmile using the NetRexx 1.1.x compiler
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void doNetRexxCompile()
throws TaskException

proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Script.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/Script.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import com.ibm.bsf.BSFException;
import com.ibm.bsf.BSFManager;
@@ -81,7 +81,7 @@ public class Script extends AbstractTask
/**
* Do the work.
*
* @exception TaskException if someting goes wrong with the build
* @exception org.apache.myrmidon.api.TaskException if someting goes wrong with the build
*/
public void execute()
throws TaskException

proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/StyleBook.java → proposal/myrmidon/src/main/org/apache/tools/todo/taskdefs/stylebook/StyleBook.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs.stylebook;

import java.io.File;
import org.apache.myrmidon.api.TaskException;

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/ANTLR.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/ANTLR.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.BufferedReader;
import java.io.File;
@@ -223,7 +223,7 @@ public class ANTLR extends AbstractTask
*
* @param command Description of Parameter
* @return Description of the Returned Value
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private int run( final Commandline command )
throws TaskException

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Cab.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/Cab.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.File;
import java.io.FileOutputStream;
@@ -280,7 +280,7 @@ public class Cab
*
* @param files Description of Parameter
* @return Description of the Returned Value
* @exception IOException Description of Exception
* @exception java.io.IOException Description of Exception
*/
protected File createListFile( ArrayList files )
throws IOException

proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/ClassArgument.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/ClassArgument.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

public class ClassArgument
{

proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Entry.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/Entry.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.text.DateFormat;
import java.text.DecimalFormat;
@@ -120,7 +120,7 @@ public class Entry
/**
* Check if parameter combinations can be supported
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void checkParameters()
throws TaskException
@@ -151,7 +151,7 @@ public class Entry
* @param oldValue the current value read from the property file or
* <code>null</code> if the <code>key</code> was not contained in
* the property file.
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void executeDate( String oldValue )
throws TaskException
@@ -282,7 +282,7 @@ public class Entry
* @param oldValue the current value read from the property file or
* <code>null</code> if the <code>key</code> was not contained in
* the property file.
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void executeInteger( String oldValue )
throws TaskException
@@ -372,7 +372,7 @@ public class Entry
* @param oldValue the current value read from the property file or
* <code>null</code> if the <code>key</code> was not contained in
* the property file.
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void executeString( String oldValue )
throws TaskException

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/IContract.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/IContract.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.File;
import java.io.FileInputStream;
@@ -672,7 +672,7 @@ public class IContract extends MatchingTask
/**
* Executes the task
*
* @exception TaskException if the instrumentation fails
* @exception org.apache.myrmidon.api.TaskException if the instrumentation fails
*/
public void execute()
throws TaskException
@@ -875,7 +875,7 @@ public class IContract extends MatchingTask
/**
* Checks that the required attributes are set.
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void preconditions()
throws TaskException
@@ -914,7 +914,7 @@ public class IContract extends MatchingTask
* Also creates a temporary file with a list of the source files, that will
* be deleted upon exit.
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void scan()
throws TaskException

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Javah.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/Javah.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.File;
import java.util.ArrayList;
@@ -18,6 +18,7 @@ import org.apache.myrmidon.api.TaskContext;
import org.apache.tools.todo.types.Commandline;
import org.apache.tools.todo.types.Path;
import org.apache.tools.todo.util.FileUtils;
import org.apache.tools.todo.taskdefs.ClassArgument;

/**
* Task to generate JNI header files using javah. This task can take the
@@ -308,7 +309,7 @@ public class Javah
* Peforms a compile using the classic compiler that shipped with JDK 1.1
* and 1.2.
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/

private void doClassicCompile()

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/NetRexxC.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/NetRexxC.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import java.io.File;
import java.io.IOException;
@@ -477,7 +477,7 @@ public class NetRexxC extends MatchingTask
/**
* Executes the task, i.e. does the actual compiler call
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
public void execute()
throws TaskException
@@ -639,7 +639,7 @@ public class NetRexxC extends MatchingTask
/**
* Peforms a copmile using the NetRexx 1.1.x compiler
*
* @exception TaskException Description of Exception
* @exception org.apache.myrmidon.api.TaskException Description of Exception
*/
private void doNetRexxCompile()
throws TaskException

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Script.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/Script.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs;

import com.ibm.bsf.BSFException;
import com.ibm.bsf.BSFManager;
@@ -81,7 +81,7 @@ public class Script extends AbstractTask
/**
* Do the work.
*
* @exception TaskException if someting goes wrong with the build
* @exception org.apache.myrmidon.api.TaskException if someting goes wrong with the build
*/
public void execute()
throws TaskException

proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/StyleBook.java → proposal/myrmidon/src/todo/org/apache/tools/todo/taskdefs/stylebook/StyleBook.java View File

@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE.txt file.
*/
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.todo.taskdefs.stylebook;

import java.io.File;
import org.apache.myrmidon.api.TaskException;

Loading…
Cancel
Save