- Timestamp:
- 11/03/11 16:37:46 (7 months ago)
- Location:
- trunk/pustefix-plugins
- Files:
-
- 3 modified
-
pustefix-iwrapper-plugin/src/main/java/org/pustefixframework/maven/plugins/Apt.java (modified) (1 diff)
-
pustefix-webapp-plugin/src/main/java/org/pustefixframework/maven/plugins/PustefixWebappMojo.java (modified) (3 diffs)
-
pustefix-webservice-plugin/src/main/java/org/pustefixframework/maven/plugins/PustefixWebserviceMojo.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pustefix-plugins/pustefix-iwrapper-plugin/src/main/java/org/pustefixframework/maven/plugins/Apt.java
r6040 r6041 77 77 lastRunFile.delete(); 78 78 try { 79 if(!lastRunFile.getParentFile().exists()) lastRunFile.getParentFile().mkdirs(); 79 80 lastRunFile.createNewFile(); 80 81 } catch (IOException x) { 81 throw new MojoExecutionException("cannot create " + lastRun );82 throw new MojoExecutionException("cannot create " + lastRun, x); 82 83 } 83 84 return modified.size(); -
trunk/pustefix-plugins/pustefix-webapp-plugin/src/main/java/org/pustefixframework/maven/plugins/PustefixWebappMojo.java
r6040 r6041 19 19 package org.pustefixframework.maven.plugins; 20 20 21 import java.io.File; 22 21 23 import org.apache.maven.plugin.AbstractMojo; 22 24 import org.apache.maven.plugin.MojoExecutionException; 23 25 import org.apache.maven.project.MavenProject; 26 27 import de.schlund.pfixxml.config.GlobalConfig; 28 import de.schlund.pfixxml.config.GlobalConfigurator; 24 29 25 30 /** … … 31 36 * @requiresDependencyResolution compile 32 37 */ 33 @Deprecated34 38 public class PustefixWebappMojo extends AbstractMojo { 39 40 /** 41 * Docroot of the application 42 * 43 * @parameter default-value="${project.build.directory}/${project.artifactId}-${project.version}" 44 */ 45 private String docroot; 35 46 36 47 /** … … 51 62 } 52 63 64 // because all executions operate on the same pfixcore classes: 65 GlobalConfig.reset(); 66 67 GlobalConfigurator.setDocroot(docroot); 68 new File(docroot, "WEB-INF").mkdirs(); 69 70 53 71 getLog().warn("************************************************************************"); 54 72 getLog().warn("* You're calling a deprecated Maven plugin goal. You should remove *"); -
trunk/pustefix-plugins/pustefix-webservice-plugin/src/main/java/org/pustefixframework/maven/plugins/PustefixWebserviceMojo.java
r5524 r6041 172 172 } 173 173 // Setup WSDL repository 174 if (!webappdir.exists()) throw new MojoExecutionException("Web application directory of project '" + projectName + "' doesn't exist: " + webappdir.getAbsolutePath());174 if (!webappdir.exists()) webappdir.mkdirs(); 175 175 File wsdlDir = tmpDir; 176 176 if (globConf.getWSDLSupportEnabled()) { … … 196 196 // Check if WEB-INF exists 197 197 File webInfDir = new File(webappdir, "WEB-INF"); 198 if (!webInfDir.exists()) 199 throw new MojoExecutionException("Web application WEB-INF subdirectory of project '" + projectName + "' doesn't exist"); 198 if (!webInfDir.exists()) webInfDir.mkdirs(); 200 199 201 200 // Iterate over services
