mirror of https://github.com/apache/maven.git
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:
parent
0f861327fd
commit
7d9fca23bb
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
Loading…
Reference in New Issue