You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2016/11/23 10:49:53 UTC

svn commit: r1770946 - in /myfaces/tobago/trunk/tobago-theme: pom.xml tobago-theme-richmond/pom.xml

Author: lofwyr
Date: Wed Nov 23 10:49:53 2016
New Revision: 1770946

URL: http://svn.apache.org/viewvc?rev=1770946&view=rev
Log:
TOBAGO-1601: Building the different themes (scarborough, speyside, ...) like bootstrap builds

Modified:
    myfaces/tobago/trunk/tobago-theme/pom.xml
    myfaces/tobago/trunk/tobago-theme/tobago-theme-richmond/pom.xml

Modified: myfaces/tobago/trunk/tobago-theme/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/pom.xml?rev=1770946&r1=1770945&r2=1770946&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/pom.xml (original)
+++ myfaces/tobago/trunk/tobago-theme/pom.xml Wed Nov 23 10:49:53 2016
@@ -26,6 +26,10 @@
   <name>Tobago Themes</name>
   <artifactId>tobago-theme</artifactId>
 
+  <properties>
+    <bootstrap.version>4.0.0-alpha.4</bootstrap.version>
+  </properties>
+
   <build>
     <plugins>
       <plugin>
@@ -73,4 +77,164 @@
     </dependency>
   </dependencies>
 
+  <profiles>
+    <profile>
+      <id>rebuild-theme</id>
+      <build>
+        <plugins>
+
+          <plugin>
+            <artifactId>maven-scm-plugin</artifactId>
+            <version>1.9.5</version>
+            <executions>
+              <execution>
+                <!--load Bootstrap sources via git to target/checkout -->
+                <id>step #1: copy-bootstrap</id>
+                <phase>generate-resources</phase>
+                <goals>
+                  <goal>checkout</goal>
+                </goals>
+                <configuration>
+                  <connectionUrl>scm:git:https://github.com/twbs/bootstrap</connectionUrl>
+                  <skipCheckoutIfExists>true</skipCheckoutIfExists>
+                  <scmVersion>v${bootstrap.version}</scmVersion>
+                  <scmVersionType>branch</scmVersionType>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+
+          <plugin>
+            <artifactId>maven-resources-plugin</artifactId>
+            <version>2.7</version>
+            <executions>
+              <execution>
+                <!-- copy Bootstrap to target/bootstrap -->
+                <id>step #2: copy-bootstrap</id>
+                <phase>generate-resources</phase>
+                <goals>
+                  <goal>copy-resources</goal>
+                </goals>
+                <configuration>
+                  <outputDirectory>${project.build.directory}/bootstrap</outputDirectory>
+                  <resources>
+                    <resource>
+                      <directory>${project.build.directory}/checkout</directory>
+                      <exclude>scss/_custom.scss</exclude>
+                    </resource>
+                  </resources>
+                </configuration>
+              </execution>
+              <execution>
+                <!-- copy customization to target/bootstrap -->
+                <id>step #3: copy-custom</id>
+                <phase>generate-resources</phase>
+                <goals>
+                  <goal>copy-resources</goal>
+                </goals>
+                <configuration>
+                  <outputDirectory>${project.build.directory}/bootstrap</outputDirectory>
+                  <resources>
+                    <resource>
+                      <directory>src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard
+                      </directory>
+                      <includes>
+                        <include>scss/*</include>
+                      </includes>
+                    </resource>
+                  </resources>
+                </configuration>
+              </execution>
+              <execution>
+                <!-- copy the result to target/classes -->
+                <id>step #8: copy-bootstrap-dist</id>
+                <phase>process-resources</phase>
+                <goals>
+                  <goal>copy-resources</goal>
+                </goals>
+                <configuration>
+                  <outputDirectory>
+                    ${basedir}/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/bootstrap-richmond/${bootstrap.version}
+                  </outputDirectory>
+                  <resources>
+                    <resource>
+                      <directory>${project.build.directory}/bootstrap/dist</directory>
+                    </resource>
+                  </resources>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+
+          <plugin>
+            <groupId>com.github.eirslett</groupId>
+            <artifactId>frontend-maven-plugin</artifactId>
+            <version>1.0</version>
+
+            <!-- optional -->
+            <configuration>
+              <nodeVersion>v6.5.0</nodeVersion>
+              <npmVersion>3.10.8</npmVersion>
+              <!-- optional: where to download node and npm from. Defaults to https://nodejs.org/dist/ -->
+              <!--<downloadRoot>http://myproxy.example.org/nodejs/dist/</downloadRoot>-->
+              <!-- optional: where to install node and npm. Defaults to the working directory -->
+              <installDirectory>${project.build.directory}/frontend</installDirectory>
+              <workingDirectory>${project.build.directory}/bootstrap</workingDirectory>
+            </configuration>
+
+            <executions>
+
+              <execution>
+                <!-- install "node" and "npm" -->
+                <id>step #4: install node and npm</id>
+                <goals>
+                  <goal>install-node-and-npm</goal>
+                </goals>
+                <phase>generate-resources</phase>
+              </execution>
+
+              <execution>
+                <!-- install "grunt-cli" -->
+                <id>step #5: npm install grunt-cli</id>
+                <goals>
+                  <goal>npm</goal>
+                </goals>
+                <phase>generate-resources</phase>
+                <configuration>
+                  <arguments>install grunt-cli</arguments>
+                </configuration>
+              </execution>
+
+              <execution>
+                <!-- install all other required stuff for "bootstrap" -->
+                <id>step #6: npm install</id>
+                <goals>
+                  <goal>npm</goal>
+                </goals>
+                <phase>generate-resources</phase>
+                <configuration>
+                  <arguments>install</arguments>
+                </configuration>
+              </execution>
+
+              <execution>
+                <!-- build "bootstrap" with "grunt" -->
+                <id>step #7: grunt build</id>
+                <goals>
+                  <goal>grunt</goal>
+                </goals>
+                <phase>generate-resources</phase>
+                <configuration>
+                  <arguments>dist</arguments>
+                </configuration>
+              </execution>
+
+            </executions>
+          </plugin>
+
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+
 </project>

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-richmond/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-richmond/pom.xml?rev=1770946&r1=1770945&r2=1770946&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-richmond/pom.xml (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-richmond/pom.xml Wed Nov 23 10:49:53 2016
@@ -28,170 +28,6 @@
   <packaging>jar</packaging>
   <name>Tobago Theme Richmond</name>
 
-  <properties>
-    <bootstrap.version>4.0.0-alpha.4</bootstrap.version>
-  </properties>
-
-  <profiles>
-    <profile>
-      <id>rebuild-theme</id>
-      <build>
-        <plugins>
-
-          <plugin>
-            <artifactId>maven-scm-plugin</artifactId>
-            <version>1.9.5</version>
-            <executions>
-              <execution>
-                <!--load Bootstrap sources via git to target/checkout -->
-                <id>step #1: copy-bootstrap</id>
-                <phase>generate-resources</phase>
-                <goals>
-                  <goal>checkout</goal>
-                </goals>
-                <configuration>
-                  <connectionUrl>scm:git:https://github.com/twbs/bootstrap</connectionUrl>
-                  <skipCheckoutIfExists>true</skipCheckoutIfExists>
-                  <scmVersion>v${bootstrap.version}</scmVersion>
-                  <scmVersionType>branch</scmVersionType>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-
-          <plugin>
-            <artifactId>maven-resources-plugin</artifactId>
-            <version>2.7</version>
-            <executions>
-              <execution>
-                <!-- copy Bootstrap to target/bootstrap -->
-                <id>step #2: copy-bootstrap</id>
-                <phase>generate-resources</phase>
-                <goals>
-                  <goal>copy-resources</goal>
-                </goals>
-                <configuration>
-                  <outputDirectory>${project.build.directory}/bootstrap</outputDirectory>
-                  <resources>
-                    <resource>
-                      <directory>${project.build.directory}/checkout</directory>
-                      <exclude>scss/_custom.scss</exclude>
-                    </resource>
-                  </resources>
-                </configuration>
-              </execution>
-              <execution>
-                <!-- copy customization to target/bootstrap -->
-                <id>step #3: copy-custom</id>
-                <phase>generate-resources</phase>
-                <goals>
-                  <goal>copy-resources</goal>
-                </goals>
-                <configuration>
-                  <outputDirectory>${project.build.directory}/bootstrap</outputDirectory>
-                  <resources>
-                    <resource>
-                      <directory>src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard
-                      </directory>
-                      <includes>
-                        <include>scss/*</include>
-                      </includes>
-                    </resource>
-                  </resources>
-                </configuration>
-              </execution>
-              <execution>
-                <!-- copy the result to target/classes -->
-                <id>step #8: copy-bootstrap-dist</id>
-                <phase>process-resources</phase>
-                <goals>
-                  <goal>copy-resources</goal>
-                </goals>
-                <configuration>
-                  <outputDirectory>
-                    ${basedir}/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/bootstrap-richmond/${bootstrap.version}
-                  </outputDirectory>
-                  <resources>
-                    <resource>
-                      <directory>${project.build.directory}/bootstrap/dist</directory>
-                    </resource>
-                  </resources>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-
-          <plugin>
-            <groupId>com.github.eirslett</groupId>
-            <artifactId>frontend-maven-plugin</artifactId>
-            <version>1.0</version>
-
-            <!-- optional -->
-            <configuration>
-              <nodeVersion>v6.5.0</nodeVersion>
-              <npmVersion>3.10.8</npmVersion>
-              <!-- optional: where to download node and npm from. Defaults to https://nodejs.org/dist/ -->
-              <!--<downloadRoot>http://myproxy.example.org/nodejs/dist/</downloadRoot>-->
-              <!-- optional: where to install node and npm. Defaults to the working directory -->
-              <installDirectory>${project.build.directory}/frontend</installDirectory>
-              <workingDirectory>${project.build.directory}/bootstrap</workingDirectory>
-            </configuration>
-
-            <executions>
-
-              <execution>
-                <!-- install "node" and "npm" -->
-                <id>step #4: install node and npm</id>
-                <goals>
-                  <goal>install-node-and-npm</goal>
-                </goals>
-                <phase>generate-resources</phase>
-              </execution>
-
-              <execution>
-                <!-- install "grunt-cli" -->
-                <id>step #5: npm install grunt-cli</id>
-                <goals>
-                  <goal>npm</goal>
-                </goals>
-                <phase>generate-resources</phase>
-                <configuration>
-                  <arguments>install grunt-cli</arguments>
-                </configuration>
-              </execution>
-
-              <execution>
-                <!-- install all other required stuff for "bootstrap" -->
-                <id>step #6: npm install</id>
-                <goals>
-                  <goal>npm</goal>
-                </goals>
-                <phase>generate-resources</phase>
-                <configuration>
-                  <arguments>install</arguments>
-                </configuration>
-              </execution>
-
-              <execution>
-                <!-- build "bootstrap" with "grunt" -->
-                <id>step #7: grunt build</id>
-                <goals>
-                  <goal>grunt</goal>
-                </goals>
-                <phase>generate-resources</phase>
-                <configuration>
-                  <arguments>dist</arguments>
-                </configuration>
-              </execution>
-
-            </executions>
-          </plugin>
-
-        </plugins>
-      </build>
-    </profile>
-  </profiles>
-
   <dependencies>
     <dependency>
       <groupId>org.apache.myfaces.tobago</groupId>