Permalink
Browse files

Removed a deprecation warning that Jython 2.2 added.

  • Loading branch information...
1 parent 4459b8a commit 11071ea5e7c9905dc6d9944467938d761185cad5 @nirvdrum committed Aug 31, 2007
Showing with 9 additions and 10 deletions.
  1. +9 −10 src/main/java/com/servprise/plugins/jython/AbstractCompilerMojo.java
@@ -16,20 +16,16 @@
package com.servprise.plugins.jython;
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.FilenameFilter;
-import java.io.IOException;
-import java.io.InputStreamReader;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
import org.apache.maven.artifact.Artifact;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
+import java.io.*;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
/**
* Base set of functionality for concrete mojos to compile
* jython source files to Java class files.
@@ -121,6 +117,9 @@ public void execute() throws MojoExecutionException, MojoFailureException
// Tell the jython class that we want to execute the jythonc tool.
partialArgs.add(jythonHome + "/Tools/jythonc/jythonc.py");
+
+ // Disable the warning message about jythonc being deprecated.
+ partialArgs.add("-i");
@@ -212,7 +211,7 @@ private void debug(final String message)
ret.addAll(getJythonFiles(file));
}
- // Otherwise, add the file directory to the returned output.
+ // Otherwise, add the file to the returned output.
else
{
ret.add(file);

0 comments on commit 11071ea

Please sign in to comment.