tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r618541 - /incubator/tuscany/java/sca/tools/maven/maven-web-junit/src/main/java/org/apache/tuscany/tools/sca/web/junit/plugin/WebJUnitGeneratorMojo.java
Date Tue, 05 Feb 2008 04:57:11 GMT
Author: lresende
Date: Mon Feb  4 20:57:10 2008
New Revision: 618541

URL: http://svn.apache.org/viewvc?rev=618541&view=rev
Log:
generate web artifacts inside target directory

Modified:
    incubator/tuscany/java/sca/tools/maven/maven-web-junit/src/main/java/org/apache/tuscany/tools/sca/web/junit/plugin/WebJUnitGeneratorMojo.java

Modified: incubator/tuscany/java/sca/tools/maven/maven-web-junit/src/main/java/org/apache/tuscany/tools/sca/web/junit/plugin/WebJUnitGeneratorMojo.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/tools/maven/maven-web-junit/src/main/java/org/apache/tuscany/tools/sca/web/junit/plugin/WebJUnitGeneratorMojo.java?rev=618541&r1=618540&r2=618541&view=diff
==============================================================================
--- incubator/tuscany/java/sca/tools/maven/maven-web-junit/src/main/java/org/apache/tuscany/tools/sca/web/junit/plugin/WebJUnitGeneratorMojo.java
(original)
+++ incubator/tuscany/java/sca/tools/maven/maven-web-junit/src/main/java/org/apache/tuscany/tools/sca/web/junit/plugin/WebJUnitGeneratorMojo.java
Mon Feb  4 20:57:10 2008
@@ -98,11 +98,8 @@
     private MavenProject project;
 
     public void execute() throws MojoExecutionException {
-        if (project.getPackaging().equals("pom")) {
-            return;
-        }
         File webxml =
-            new File(project.getBasedir(), "src/main/webapp/WEB-INF/web.xml".replace('/',
File.separatorChar));
+            new File(project.getBasedir(), "target/" + project.getArtifactId() + "-" + project.getVersion()
+ "/WEB-INF/web.xml".replace('/', File.separatorChar));
         getLog().info("Generating " + webxml.toString());
         String content = setParameter(WEB_XML, "display.name", project.getName());
         try {
@@ -116,7 +113,7 @@
 
         if (geronimo) {
             File geronimoxml =
-                new File(project.getBasedir(), "src/main/webapp/WEB-INF/geronimo-web.xml".replace('/',
+                new File(project.getBasedir(), "target/" + project.getArtifactId() + "-"
+ project.getVersion() + "/WEB-INF/geronimo-web.xml".replace('/',
                                                                                         
         File.separatorChar));
             getLog().info("Generating " + geronimoxml.toString());
             content = setParameter(GERONIMO_WEB_XML, "groupId", project.getGroupId());



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message