summaryrefslogtreecommitdiff
path: root/qpid/java/plugins
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-08-01 04:52:09 +0000
committerRafael H. Schloming <rhs@apache.org>2007-08-01 04:52:09 +0000
commitbf80fb28d57e4476ab29ea32376290435ff4cf3a (patch)
tree4a7e9f674e8ebe2fbb715ec389b2d0d01401d531 /qpid/java/plugins
parentfaf8adec808ff9dfdf50c7f0a2d13030cc2b4286 (diff)
downloadqpid-python-bf80fb28d57e4476ab29ea32376290435ff4cf3a.tar.gz
switched common generate script over to jython
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@561657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/plugins')
-rw-r--r--qpid/java/plugins/pom.xml29
-rw-r--r--qpid/java/plugins/src/main/java/org/apache/qpid/plugins/JythonMojo.java54
2 files changed, 83 insertions, 0 deletions
diff --git a/qpid/java/plugins/pom.xml b/qpid/java/plugins/pom.xml
new file mode 100644
index 0000000000..f913f0b2c3
--- /dev/null
+++ b/qpid/java/plugins/pom.xml
@@ -0,0 +1,29 @@
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.qpid</groupId>
+ <artifactId>jython-plugin</artifactId>
+ <packaging>maven-plugin</packaging>
+ <version>1.0-incubating-M2-SNAPSHOT</version>
+ <name>Jython Launcher</name>
+
+ <parent>
+ <groupId>org.apache.qpid</groupId>
+ <artifactId>qpid</artifactId>
+ <version>1.0-incubating-M2-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
+ <version>2.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.python</groupId>
+ <artifactId>jython</artifactId>
+ <version>2.2-rc1</version>
+ </dependency>
+ </dependencies>
+</project>
diff --git a/qpid/java/plugins/src/main/java/org/apache/qpid/plugins/JythonMojo.java b/qpid/java/plugins/src/main/java/org/apache/qpid/plugins/JythonMojo.java
new file mode 100644
index 0000000000..1788f471d7
--- /dev/null
+++ b/qpid/java/plugins/src/main/java/org/apache/qpid/plugins/JythonMojo.java
@@ -0,0 +1,54 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+ */
+package org.apache.qpid.plugins;
+
+import java.io.File;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+import org.python.util.jython;
+
+
+/**
+ * JythonMojo
+ *
+ * @author Rafael H. Schloming
+ *
+ * @goal jython
+ */
+
+public class JythonMojo extends AbstractMojo
+{
+
+ /**
+ * Arguments to jython.
+ *
+ * @parameter
+ */
+ private String[] params = new String[0];
+
+ public void execute() throws MojoExecutionException
+ {
+ jython.main(params);
+ }
+
+}