Skip to content

Commit

Permalink
[AS-409] Build source distribution during a release
Browse files Browse the repository at this point in the history
  • Loading branch information
pgier authored and bstansberry committed Feb 13, 2012
1 parent 02a53fd commit bf1bd44
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
47 changes: 47 additions & 0 deletions dist/assembly-src.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:maven:assembly:1.1.0-SNAPSHOT">
<id>src</id>
<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>

<includeBaseDirectory>false</includeBaseDirectory>

<fileSets>
<fileSet>
<directory>..</directory>
<outputDirectory>jboss-as-${project.version}-src</outputDirectory>
<includes>
<include>**/*.xml</include>
<include>**/src/**</include>
<include>**/*.txt</include>
<include>**/*.sh</include>
<include>**/*.bat</include>
<include>**/*.md</include>
<include>tools/**</include>
</includes>
<excludes>
<!-- Ignore build output -->
<exclude>**/target/**</exclude>

<!-- Ignore git repo -->
<exclude>**/.git</exclude>

<!-- Ignore IDE configuration and other hidden files-->
<exclude>**/.project</exclude>
<exclude>**/.classpath</exclude>
<exclude>**/.settings</exclude>
<exclude>**/.metadata</exclude>
<exclude>**/.iml</exclude>
<exclude>**/.ipr</exclude>
<exclude>**/.iws</exclude>
<exclude>**/.idea</exclude>
<exclude>nbactions.xml</exclude>
<exclude>nb-configuration.xml</exclude>
<exclude>catalog.xml</exclude>

</excludes>
</fileSet>
</fileSets>
</assembly>
16 changes: 16 additions & 0 deletions dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,22 @@
<workDirectory>target/assembly/work</workDirectory>
</configuration>
</execution>
<execution>
<id>assemble-src</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly-src.xml</descriptor>
</descriptors>
<finalName>jboss-as-${project.version}</finalName>
<appendAssemblyId>true</appendAssemblyId>
<outputDirectory>target/</outputDirectory>
<workDirectory>target/assembly-src/work</workDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
Expand Down

0 comments on commit bf1bd44

Please sign in to comment.