o Fixed misuse of basedir and outputDirectory. Previous version includes test resources in resulting jar.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163050 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
John Dennis Casey 2004-09-08 04:05:40 +00:00
parent 891cd440da
commit add8ebca37
1 changed files with 4 additions and 4 deletions

View File

@ -43,14 +43,14 @@ import java.util.Map;
* type="String"
* required="true"
* validator=""
* expression="#project.build.directory"
* expression="#project.build.output"
* description=""
* @parameter
* name="basedir"
* type="String"
* required="true"
* validator=""
* expression="#project.build.output"
* expression="#project.build.directory"
* description=""
*
* @author <a href="michal@codehaus">Michal Maczka</a>
@ -77,11 +77,11 @@ public class JarMojo
// ----------------------------------------------------------------------
File jarFile = new File( new File( outputDirectory ), jarName + ".jar" );
File jarFile = new File( basedir, jarName + ".jar" );
Map includes = new LinkedHashMap();
addDirectory(includes, "**/**", "**/package.html", "", basedir);
addDirectory(includes, "**/**", "**/package.html", "", new File( outputDirectory ) );
createJar( jarFile, includes );
}