Author: ips
Date: 2008-10-17 16:39:43 -0400 (Fri, 17 Oct 2008)
New Revision: 12
Modified:
trunk/core/pom.xml
trunk/jbas4/pom.xml
trunk/jbas5/pom.xml
trunk/pom.xml
Log:
dev profile back in da house
Modified: trunk/core/pom.xml
===================================================================
--- trunk/core/pom.xml 2008-10-17 17:04:21 UTC (rev 11)
+++ trunk/core/pom.xml 2008-10-17 20:39:43 UTC (rev 12)
@@ -304,4 +304,79 @@
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>dev</id>
+
+ <properties>
+
<jbas4.warDir>${jbas4.configDir}/deploy/${jbas4.finalName}.war</jbas4.warDir>
+
<jbas5.warDir>${jbas5.configDir}/deploy/${jbas5.finalName}.war</jbas5.warDir>
+ </properties>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+
+ <execution>
+ <id>deploy-to-jbas4</id>
+ <phase>compile</phase>
+ <configuration>
+ <tasks>
+ <echo>*** Copying updated files from
target${file.separator}classes to
<jbas4.warDir>${file.separator}WEB-INF${file.separator}classes...</echo>
+ <copy
todir="${jbas4.warDir}/WEB-INF/classes">
+ <fileset dir="target/classes" />
+ </copy>
+
+ <echo>*** Copying updated files from
src${file.separator}main${file.separator}webapp${file.separator} to
<jbas4.warDir>...</echo>
+ <copy todir="${jbas4.warDir}">
+ <fileset dir="${basedir}/src/main/webapp"
/>
+ </copy>
+ <!-- TODO: Also copy the files from
src/main/webapp-filtered/, and then filter them ourselves. -->
+
+ <echo>*** Touching
<jbas4.warDir>/WEB-INF/web.xml to force redeploy...</echo>
+ <touch file="${jbas4.warDir}/WEB-INF/web.xml"
/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ <execution>
+ <id>deploy-to-jbas5</id>
+ <phase>compile</phase>
+ <configuration>
+ <tasks>
+ <echo>*** Copying updated files from
target${file.separator}classes to
<jbas5.warDir>${file.separator}WEB-INF${file.separator}classes...</echo>
+ <copy
todir="${jbas5.warDir}/WEB-INF/classes">
+ <fileset dir="target/classes" />
+ </copy>
+
+ <echo>*** Copying updated files from
src${file.separator}main${file.separator}webapp${file.separator} to
<jbas5.warDir>...</echo>
+ <copy todir="${jbas5.warDir}">
+ <fileset dir="${basedir}/src/main/webapp"
/>
+ </copy>
+ <!-- TODO: Also copy the files from
src/main/webapp-filtered/, and then filter them ourselves. -->
+
+ <echo>*** Touching
<jbas5.warDir>/WEB-INF/web.xml to force redeploy...</echo>
+ <touch file="${jbas5.warDir}/WEB-INF/web.xml"
/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>
Modified: trunk/jbas4/pom.xml
===================================================================
--- trunk/jbas4/pom.xml 2008-10-17 17:04:21 UTC (rev 11)
+++ trunk/jbas4/pom.xml 2008-10-17 20:39:43 UTC (rev 12)
@@ -50,7 +50,7 @@
</dependencies>
<build>
- <finalName>jbas4-console</finalName>
+ <finalName>${jbas4.finalName}</finalName>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
@@ -137,4 +137,66 @@
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>dev</id>
+
+ <properties>
+
<warDir>${jbas4.configDir}/deploy/${project.build.finalName}.war</warDir>
+ </properties>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+
+ <execution>
+ <id>deploy</id>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <property name="deployment.dir"
location="${warDir}" />
+ <echo>*** Copying updated files from
target${file.separator}${project.build.finalName} to
<warDir>...</echo>
+ <touch
file="${basedir}/target/${project.build.finalName}/WEB-INF/classes/messages.properties"
/>
+ <copy todir="${deployment.dir}"
verbose="${embedded.verbose}">
+ <fileset
dir="${basedir}/target/${project.build.finalName}" />
+ </copy>
+ <unjar
src="${project.build.directory}/${project.build.finalName}.war"
dest="${deployment.dir}">
+ <patternset>
+ <include name="META-INF/**" />
+ </patternset>
+ </unjar>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ <execution>
+ <id>undeploy</id>
+ <phase>clean</phase>
+ <configuration>
+ <tasks>
+ <property name="deployment.dir"
location="${warDir}" />
+ <echo>*** Deleting
${deployment.dir}${file.separator}...</echo>
+ <delete dir="${deployment.dir}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
</project>
Modified: trunk/jbas5/pom.xml
===================================================================
--- trunk/jbas5/pom.xml 2008-10-17 17:04:21 UTC (rev 11)
+++ trunk/jbas5/pom.xml 2008-10-17 20:39:43 UTC (rev 12)
@@ -76,7 +76,7 @@
</dependencies>
<build>
- <finalName>jbas5-console</finalName>
+ <finalName>${jbas5.finalName}</finalName>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
@@ -152,5 +152,67 @@
-->
</plugins>
</build>
+
+ <profiles>
+ <profile>
+ <id>dev</id>
+
+ <properties>
+
<warDir>${jbas5.configDir}/deploy/${project.build.finalName}.war</warDir>
+ </properties>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <version>1.1</version>
+ <executions>
+
+ <execution>
+ <id>deploy</id>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <property name="deployment.dir"
location="${warDir}" />
+ <echo>*** Copying updated files from
target${file.separator}${project.build.finalName} to
<warDir>...</echo>
+ <touch
file="${basedir}/target/${project.build.finalName}/WEB-INF/classes/messages.properties"
/>
+ <copy todir="${deployment.dir}"
verbose="${embedded.verbose}">
+ <fileset
dir="${basedir}/target/${project.build.finalName}" />
+ </copy>
+ <unjar
src="${project.build.directory}/${project.build.finalName}.war"
dest="${deployment.dir}">
+ <patternset>
+ <include name="META-INF/**" />
+ </patternset>
+ </unjar>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ <execution>
+ <id>undeploy</id>
+ <phase>clean</phase>
+ <configuration>
+ <tasks>
+ <property name="deployment.dir"
location="${warDir}" />
+ <echo>*** Deleting
${deployment.dir}${file.separator}...</echo>
+ <delete dir="${deployment.dir}" />
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2008-10-17 17:04:21 UTC (rev 11)
+++ trunk/pom.xml 2008-10-17 20:39:43 UTC (rev 12)
@@ -50,8 +50,10 @@
<
url>https://jira.jboss.org/jira/browse/EMBJOPR</url>
</issueManagement>
- <properties>
-
+ <properties>
+ <jbas4.finalName>admin-console</jbas4.finalName>
+ <jbas5.finalName>admin-console</jbas5.finalName>
+
<!-- dependency groupIds -->
<rhq.groupId>org.rhq</rhq.groupId>
<jon.groupId>org.jboss.on</jon.groupId>