diff options
| author | Rafael H. Schloming <rhs@apache.org> | 2009-07-09 18:17:00 +0000 |
|---|---|---|
| committer | Rafael H. Schloming <rhs@apache.org> | 2009-07-09 18:17:00 +0000 |
| commit | 790f997363df9caae7cc4c96067093cd81aa6456 (patch) | |
| tree | c00250999811415fa046a5ddb39205aba038979a /java/plugins | |
| parent | 35242ff9c49e33236cf8000b5d3fa70c0acf22e9 (diff) | |
| download | qpid-python-790f997363df9caae7cc4c96067093cd81aa6456.tar.gz | |
removed dead code and old files
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792624 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/plugins')
| -rw-r--r-- | java/plugins/src/main/java/org/apache/qpid/plugins/JythonMojo.java | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/java/plugins/src/main/java/org/apache/qpid/plugins/JythonMojo.java b/java/plugins/src/main/java/org/apache/qpid/plugins/JythonMojo.java deleted file mode 100644 index 85dffeb4bf..0000000000 --- a/java/plugins/src/main/java/org/apache/qpid/plugins/JythonMojo.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * - * 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 java.io.IOException; - -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]; - - /** - * Source file. - * - * @parameter - */ - private File[] sources; - - /** - * Optional timestamp. - * - * @parameter - */ - private File timestamp; - - public void execute() throws MojoExecutionException - { - boolean stale = true; - - if (sources != null && sources.length > 0 && timestamp != null) - { - stale = false; - for (File source : sources) - { - if (source.lastModified() > timestamp.lastModified()) - { - stale = true; - break; - } - } - } - - if (stale) - { - jython.main(params); - - if (timestamp != null) - { - try - { - timestamp.createNewFile(); - } - catch (IOException e) - { - throw new MojoExecutionException("cannot create timestamp", e); - } - timestamp.setLastModified(System.currentTimeMillis()); - } - } - } - -} |
