Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 49266 invoked from network); 17 Mar 2006 14:34:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Mar 2006 14:34:10 -0000 Received: (qmail 59538 invoked by uid 500); 17 Mar 2006 14:34:09 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 59383 invoked by uid 500); 17 Mar 2006 14:34:08 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 59372 invoked by uid 99); 17 Mar 2006 14:34:08 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 06:34:08 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 17 Mar 2006 06:34:07 -0800 Received: (qmail 48914 invoked by uid 65534); 17 Mar 2006 14:33:47 -0000 Message-ID: <20060317143347.48913.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r386643 - in /geronimo/devtools/eclipse-plugin/trunk: maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/ plugins/org.apache.geronimo.deployment.model.edit/ plugins/org.apache.geronimo.deployment.... Date: Fri, 17 Mar 2006 14:33:45 -0000 To: scm@geronimo.apache.org From: sppatel@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: sppatel Date: Fri Mar 17 06:33:44 2006 New Revision: 386643 URL: http://svn.apache.org/viewcvs?rev=386643&view=rev Log: m2 Added: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/GetGMojo.java (with props) Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model.edit/pom.xml geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model/pom.xml geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.devtools.eclipse.core/pom.xml geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jetty.j2ee.server.v1/pom.xml geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.tomcat.j2ee.server.v1/pom.xml geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/pom.xml Added: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/GetGMojo.java URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/GetGMojo.java?rev=386643&view=auto ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/GetGMojo.java (added) +++ geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/GetGMojo.java Fri Mar 17 06:33:44 2006 @@ -0,0 +1,100 @@ +/** + * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable + * + * Licensed 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.geronimo.eclipse.devtools; + +import java.io.File; +import java.net.MalformedURLException; +import java.net.URL; + +import org.apache.maven.plugin.AbstractMojo; +import org.apache.maven.plugin.MojoExecutionException; +import org.apache.maven.plugin.MojoFailureException; +import org.apache.tools.ant.Project; +import org.apache.tools.ant.taskdefs.Copy; +import org.apache.tools.ant.taskdefs.Get; + +/** + * @goal getg + */ +public class GetGMojo extends AbstractMojo { + + /** + * @parameter expression="http://www.apache.org/dist/geronimo" + */ + private URL siteRoot; + + /** + * @parameter expression="${settings.localRepository}" + */ + private String localRepo; + + /** + * @parameter expression="${project.build.outputDirectory}/zips" + */ + private File target; + + /** + * @parameter + * @required + */ + private String distribution; + + /** + * @parameter + * @required + */ + private String version; + + /** + * @parameter expression="zip" + */ + private String type; + + /* + * (non-Javadoc) + * + * @see org.apache.maven.plugin.Mojo#execute() + */ + public void execute() throws MojoExecutionException, MojoFailureException { + String fileName = distribution + "-" + version + "." + type; + File gDistro = new File(localRepo + File.separator + "geronimo" + + File.separator + "distributions" + File.separator + fileName); + + gDistro.getParentFile().mkdirs(); + + if (!gDistro.exists()) { + try { + URL gUrl = new URL(siteRoot.toExternalForm() + "/" + version + + "/" + fileName); + Get getTask = new Get(); + getTask.setProject(new Project()); + getTask.setDest(gDistro); + getTask.setSrc(gUrl); + getLog().info("Downloading " + fileName + "..."); + getTask.execute(); + } catch (MalformedURLException e) { + throw new MojoFailureException(e.getMessage()); + } + } + + Copy copyTask = new Copy(); + copyTask.setProject(new Project()); + copyTask.setFile(gDistro); + copyTask.setOverwrite(false); + copyTask.setTodir(target); + copyTask.execute(); + } +} Propchange: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/GetGMojo.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/GetGMojo.java ------------------------------------------------------------------------------ svn:keywords = Date Rev Propchange: geronimo/devtools/eclipse-plugin/trunk/maven-plugins/maven-geronimodevtools-plugin/src/main/java/org/apache/geronimo/eclipse/devtools/GetGMojo.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model.edit/pom.xml URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model.edit/pom.xml?rev=386643&r1=386642&r2=386643&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model.edit/pom.xml (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model.edit/pom.xml Fri Mar 17 06:33:44 2006 @@ -29,6 +29,15 @@ + org.apache.maven.plugins + maven-jar-plugin + + + META-INF/MANIFEST.MF + + + + org.codehaus.mojo dependency-maven-plugin Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model/pom.xml URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model/pom.xml?rev=386643&r1=386642&r2=386643&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model/pom.xml (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.deployment.model/pom.xml Fri Mar 17 06:33:44 2006 @@ -29,6 +29,15 @@ + org.apache.maven.plugins + maven-jar-plugin + + + META-INF/MANIFEST.MF + + + + org.codehaus.mojo dependency-maven-plugin Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.devtools.eclipse.core/pom.xml URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.devtools.eclipse.core/pom.xml?rev=386643&r1=386642&r2=386643&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.devtools.eclipse.core/pom.xml (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.devtools.eclipse.core/pom.xml Fri Mar 17 06:33:44 2006 @@ -51,6 +51,17 @@ + + + org.apache.maven.plugins + maven-jar-plugin + + + META-INF/MANIFEST.MF + + + + Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jetty.j2ee.server.v1/pom.xml URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jetty.j2ee.server.v1/pom.xml?rev=386643&r1=386642&r2=386643&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jetty.j2ee.server.v1/pom.xml (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.jetty.j2ee.server.v1/pom.xml Fri Mar 17 06:33:44 2006 @@ -5,4 +5,29 @@ jar ${org.apache.geronimo.jetty.j2ee.server.v1_version} Geronimo Eclipse Plugin :: Plugin :: ${artifactId} + + org.apache.geronimo.devtools + geronimo-eclipse-plugin + 1.0 + + + + + org.apache.geronimo.devtools + maven-geronimodevtools-plugin + + geronimo-jetty-j2ee + ${geronimo_version} + + + + process-resources + + getg + + + + + + Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.tomcat.j2ee.server.v1/pom.xml URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.tomcat.j2ee.server.v1/pom.xml?rev=386643&r1=386642&r2=386643&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.tomcat.j2ee.server.v1/pom.xml (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.tomcat.j2ee.server.v1/pom.xml Fri Mar 17 06:33:44 2006 @@ -5,4 +5,24 @@ jar ${org.apache.geronimo.tomcat.j2ee.server.v1_version} Geronimo Eclipse Plugin :: Plugin :: ${artifactId} + + + + org.apache.geronimo.devtools + maven-geronimodevtools-plugin + + geronimo-tomcat-j2ee + ${geronimo_version} + + + + process-resources + + getg + + + + + + Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/pom.xml URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/pom.xml?rev=386643&r1=386642&r2=386643&view=diff ============================================================================== --- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/pom.xml (original) +++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.ui/pom.xml Fri Mar 17 06:33:44 2006 @@ -44,6 +44,17 @@ + + + org.apache.maven.plugins + maven-jar-plugin + + + META-INF/MANIFEST.MF + + + +