standard assemly - src

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-30 15:58:52 +00:00
parent 0f861327fd
commit 7d9fca23bb
2 changed files with 28 additions and 1 deletions

View File

@ -194,7 +194,12 @@ public class AssembleMojo
{
includes = null;
}
String[] excludes = (String[]) fileset.getExcludes().toArray( EMPTY_STRING_ARRAY );
String[] excludes = null;
if ( !fileset.getExcludes().isEmpty() )
{
excludes = (String[]) fileset.getExcludes().toArray( EMPTY_STRING_ARRAY );
}
// TODO: default excludes?
archiver.addDirectory( new File( directory ), output, includes, excludes );
}

View File

@ -0,0 +1,22 @@
<assembly>
<id>src</id>
<formats>
<format>tar.gz</format>
<format>tar.bz2</format>
<format>zip</format>
</formats>
<filesets>
<fileset>
<includes>
<include>README*</include>
<include>LICENSE*</include>
<include>NOTICE*</include>
<include>pom.xml</include>
</includes>
</fileset>
<fileset>
<!-- TODO: use expresssions instead: ${project.build.sourceDirectory}, etc -->
<directory>src</directory>
</fileset>
</filesets>
</assembly>