Skip to content

Commit

Permalink
adding web-dist
Browse files Browse the repository at this point in the history
  • Loading branch information
emmartins authored and stuartwdouglas committed Aug 20, 2014
1 parent 6789628 commit a659e68
Show file tree
Hide file tree
Showing 5 changed files with 348 additions and 2 deletions.
18 changes: 16 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@

<server.output.dir.prefix>wildfly</server.output.dir.prefix>
<wildfly.build.output.dir>dist/target/${server.output.dir.prefix}-${jboss.as.release.version}</wildfly.build.output.dir>
<wildfly.core.build.output.dir>core-build/target/${server.output.dir.prefix}-core-${jboss.as.release.version}</wildfly.core.build.output.dir>
<wildfly.web.build.output.dir>web-build/target/${server.output.dir.prefix}-web-${jboss.as.release.version}</wildfly.web.build.output.dir>
<wildfly.web.build.output.dir>web-dist/target/${server.output.dir.prefix}-web-${jboss.as.release.version}</wildfly.web.build.output.dir>

<!--
See ChildFirstClassLoaderBuilder in model-test for the explanation of the org.jboss.model.test.cache.root and org.jboss.model.test.classpath.cache properties.
Expand Down Expand Up @@ -334,6 +333,7 @@
<module>undertow</module>
<module>web-build</module>
<module>web-common</module>
<module>web-dist</module>
<module>webservices</module>
<module>weld</module>
<module>xts</module>
Expand Down Expand Up @@ -1396,6 +1396,13 @@
</exclusions>
</dependency>

<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-web-build</artifactId>
<type>pom</type>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-web-build</artifactId>
Expand All @@ -1409,6 +1416,13 @@
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-web-dist</artifactId>
<version>${project.version}</version>
<type>pom</type>
</dependency>

<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-webservices-server-integration</artifactId>
Expand Down
70 changes: 70 additions & 0 deletions web-dist/assembly-src.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2014, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>web-distro-src</id>
<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>

<includeBaseDirectory>false</includeBaseDirectory>

<fileSets>
<fileSet>
<directory>../..</directory>
<outputDirectory>${server.output.dir.prefix}-web-${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>
74 changes: 74 additions & 0 deletions web-dist/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2014, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>web-distro</id>
<formats>
<format>zip</format>
<format>tar.gz</format>
</formats>

<includeBaseDirectory>false</includeBaseDirectory>

<fileSets>
<fileSet>
<directory>target</directory>
<outputDirectory/>
<includes>
<include>${server.output.dir.prefix}-web-${version}/**</include>
</includes>
<excludes>
<exclude>**/*.sh</exclude>
<exclude>${server.output.dir.prefix}-web-${version}/domain/tmp/auth</exclude>
<exclude>${server.output.dir.prefix}-web-${version}/standalone/tmp/auth</exclude>
<exclude>**/*-users.properties</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory/>
<includes>
<include>${server.output.dir.prefix}-web-${version}/**/*.sh</include>
</includes>
<fileMode>0755</fileMode>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory/>
<includes>
<include>${server.output.dir.prefix}-web-${version}/**/*-users.properties</include>
</includes>
<fileMode>0600</fileMode>
</fileSet>
<fileSet>
<directory>target</directory>
<outputDirectory/>
<includes>
<include>${server.output.dir.prefix}-web-${version}/domain/tmp/auth</include>
<include>${server.output.dir.prefix}-web-${version}/standalone/tmp/auth</include>
</includes>
<directoryMode>0700</directoryMode>
</fileSet>
</fileSets>
</assembly>
135 changes: 135 additions & 0 deletions web-dist/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2014, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-parent</artifactId>
<version>9.0.0.Alpha1-SNAPSHOT</version>
</parent>

<groupId>org.wildfly</groupId>
<artifactId>wildfly-web-dist</artifactId>
<version>9.0.0.Alpha1-SNAPSHOT</version>
<name>WildFly: Web Distribution</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-web-build</artifactId>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-web-build</artifactId>
<type>zip</type>
</dependency>
</dependencies>


<build>
<finalName>${server.output.dir.prefix}-web-${project.version}</finalName>
<plugins>
<plugin>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-build-plugin</artifactId>
<executions>
<execution>
<id>create-server</id>
<goals>
<goal>build</goal>
</goals>
<phase>package</phase>
<configuration>
<config-file>server-build.xml</config-file>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>release</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>assemble</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
<recompressZippedFiles>true</recompressZippedFiles>
<finalName>${server.output.dir.prefix}-web-${project.version}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>target/</outputDirectory>
<workDirectory>target/assembly/work</workDirectory>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</execution>
<execution>
<id>assemble-src</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<descriptors>
<descriptor>assembly-src.xml</descriptor>
</descriptors>
<finalName>${server.output.dir.prefix}-web-${project.version}</finalName>
<appendAssemblyId>true</appendAssemblyId>
<outputDirectory>target/</outputDirectory>
<workDirectory>target/assembly-src/work</workDirectory>
<tarLongFileMode>gnu</tarLongFileMode>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>
53 changes: 53 additions & 0 deletions web-dist/server-build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!--
~ JBoss, Home of Professional Open Source.
~ Copyright 2014, Red Hat, Inc., and individual contributors
~ as indicated by the @author tags. See the copyright.txt file in the
~ distribution for a full listing of individual contributors.
~
~ This is free software; you can redistribute it and/or modify it
~ under the terms of the GNU Lesser General Public License as
~ published by the Free Software Foundation; either version 2.1 of
~ the License, or (at your option) any later version.
~
~ This software is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
~ Lesser General Public License for more details.
~
~ You should have received a copy of the GNU Lesser General Public
~ License along with this software; if not, write to the Free
~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-->

<build xmlns="urn:wildfly:build:1.0" extract-schema="true" copy-module-artifacts="true">
<servers>
<server>
<artifact name="org.wildfly:wildfly-web-build" />
</server>
</servers>
<file-permissions>
<permission value="755">
<filter pattern="*.sh" include="true"/>
<filter pattern="*" include="false"/>
</permission>
<permission value="700">
<filter pattern="*/tmp/auth" include="true"/>
<filter pattern="*" include="false"/>
</permission>
<permission value="600">
<filter pattern="*-users.properties" include="true" />
<filter pattern="*/.installation" include="true"/>
<filter pattern="*" include="false"/>
</permission>
</file-permissions>
<line-endings>
<windows>
<filter pattern="*.bat" include="true"/>
</windows>
<unix>
<filter pattern="*.sh" include="true"/>
<filter pattern="*.conf" include="true"/>
</unix>
</line-endings>
</build>

0 comments on commit a659e68

Please sign in to comment.