Permalink
Browse files

Merge branch 'master' of gitproxy:exanpe/tapestry-tldgen

  • Loading branch information...
2 parents 0430156 + 9df68d5 commit ea87e46b34349eba21b6987fa2ea7e629820e5b1 attonnnn committed Oct 5, 2010
Showing with 8 additions and 2 deletions.
  1. +1 −1 pom.xml
  2. +7 −1 src/main/java/fr/exanpe/tapestry/tldgen/javadoc/JavadocProcessor.java
View
@@ -3,7 +3,7 @@
<parent>
<artifactId>exanpe-parent</artifactId>
<groupId>fr.exanpe</groupId>
- <version>1.0</version>
+ <version>1.1</version>
</parent>
<artifactId>tapestry-tldgen</artifactId>
<version>1.0.1-SNAPSHOT</version>
@@ -122,7 +122,13 @@ public ComponentsInfoBean runJavadoc(String rootPackage) throws MojoExecutionExc
}
// XML Output file for collect conponents information
- String parametersPath = project.getBuild().getDirectory() + File.separator + "tldgen-components-info.xml";
+ String tempDir = System.getProperty("java.io.tmpdir");
+ // Security check if there is a trailing slash or not
+ if (!(tempDir.endsWith("/") || tempDir.endsWith("\\")))
+ {
+ tempDir = tempDir + File.separator;
+ }
+ String parametersPath = tempDir + "tldgen-components-info.xml";
// Args used by Javadoc tool
String[] arguments =

0 comments on commit ea87e46

Please sign in to comment.