]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - maven-argeo-qooxdoo-plugin/src/main/java/org/argeo/slc/maven/plugins/qooxdoo/GenerateMojo.java
Don't use python win32 package
[gpl/argeo-slc.git] / maven-argeo-qooxdoo-plugin / src / main / java / org / argeo / slc / maven / plugins / qooxdoo / GenerateMojo.java
index 1529b808e7e9c093024f6632a034cff68412dedb..27f9f6dd99b62455a68be1ad0425a8632b4f42cc 100644 (file)
@@ -51,30 +51,14 @@ public class GenerateMojo extends AbstractMojo {
 
        public void execute() throws MojoExecutionException, MojoFailureException {
                try {
-                       // File jythonBase = new File(buildDirectory, "jython");
-                       // jythonBase.mkdirs();
-                       // System.setProperty("python.home", jythonBase.getCanonicalPath());
-
                        File generateScript = new File(baseDir.getPath() + File.separator
                                        + qooxdooSdk + File.separator + "tool" + File.separator
                                        + "bin", "generator.py");
-                       // String[] jobArray = jobs.split(" ");
-                       // String[] args = new String[jobArray.length + 1];
-                       // args[0] = generateScript.getCanonicalPath();
-                       // System.arraycopy(jobArray, 0, args, 1, jobArray.length);
-                       // String[] args = { "generate.py", job };
                        getLog().info("Running Qooxdoo job: " + job + " ...");
-                       // jython.main(args);
 
                        Commandline cl = new Commandline();
 
-                       if (File.separatorChar == '\\') {// win
-                               File pythonBase = new File(buildDirectory, "python-win32")
-                                               .getCanonicalFile();
-                               cl.setExecutable(pythonBase.getPath() + File.separator
-                                               + "python");
-                       } else
-                               cl.setExecutable("python");
+                       cl.setExecutable("python");// python needs to be installed
                        cl.setWorkingDirectory(baseDir.getCanonicalPath());
                        cl.createArgument().setValue(generateScript.getCanonicalPath());
                        cl.createArgument().setValue(job);