You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2008/04/11 07:57:55 UTC

svn commit: r647059 - /portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java

Author: ate
Date: Thu Apr 10 22:57:53 2008
New Revision: 647059

URL: http://svn.apache.org/viewvc?rev=647059&view=rev
Log:
Working around a limitation of the current DeployFactory handling and determination of the target context name.
This needs to be properly refactored

Modified:
    portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java

Modified: portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java?rev=647059&r1=647058&r2=647059&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java (original)
+++ portals/jetspeed-2/portal/trunk/maven/jetspeed-deploy-maven-plugin/src/main/java/org/apache/jetspeed/maven/plugins/DeployMojo.java Thu Apr 10 22:57:53 2008
@@ -419,7 +419,12 @@
                 File tmpTarget = null;
                 try
                 {
-                    tmpTarget = File.createTempFile(dobj.src.getName()+".infused-", "");
+                    String contextName = dobj.deployment.targetName;
+                    if (contextName.endsWith(".war"))
+                    {
+                        contextName = contextName.substring(0,contextName.length()-4);
+                    }
+                    tmpTarget = File.createTempFile(contextName+"-infused.war", "");
                     tmpTarget.deleteOnExit();
                 }
                 catch (IOException e)



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org