camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [1/2] git commit: CAMEL-7065 Disable generate manul build by using profile fastinstall
Date Fri, 13 Dec 2013 03:23:08 GMT
Updated Branches:
  refs/heads/camel-2.11.x 9745451f3 -> 6250b4826
  refs/heads/camel-2.12.x ee95af1c0 -> 81e557402


CAMEL-7065 Disable generate manul build by using profile fastinstall


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/81e55740
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/81e55740
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/81e55740

Branch: refs/heads/camel-2.12.x
Commit: 81e5574020e264ccbfb128f3808692314d341b34
Parents: ee95af1
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Fri Dec 13 11:10:07 2013 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Dec 13 11:20:58 2013 +0800

----------------------------------------------------------------------
 tooling/camel-manual/pom.xml                         | 15 +++++++++++++++
 .../org/apache/camel/manual/ManualGenerator.java     |  6 ++++++
 2 files changed, 21 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/81e55740/tooling/camel-manual/pom.xml
----------------------------------------------------------------------
diff --git a/tooling/camel-manual/pom.xml b/tooling/camel-manual/pom.xml
index 4a87f27..5db39a6 100644
--- a/tooling/camel-manual/pom.xml
+++ b/tooling/camel-manual/pom.xml
@@ -37,7 +37,20 @@
           <artifactId>tagsoup</artifactId>
       </dependency>
   </dependencies>
+  
+  <profiles>
+     <profile>
+         <id>fastinstall</id>
+         <properties>
+             <generate.manual.skip.exec>true</generate.manual.skip.exec>
+         </properties>
+     </profile>
+  </profiles>
 
+  <properties>
+      <generate.manual.skip.exec>false</generate.manual.skip.exec>
+  </properties>
+         
   <build>
     <plugins>
         <plugin>
@@ -81,6 +94,7 @@
                                 </script>
                             ]]></argument>
                             <argument>${project.build.directory}</argument>
+                            <argument>${generate.manual.skip.exec}</argument>
                         </arguments>
                     </configuration>
                 </execution>
@@ -97,6 +111,7 @@
               <goal>attach-artifact</goal>
             </goals>
             <configuration>
+              <skipAttach>true</skipAttach>
               <artifacts>
                 <artifact>
                   <file>${project.build.directory}/site/manual/camel-manual-${project.version}.html</file>

http://git-wip-us.apache.org/repos/asf/camel/blob/81e55740/tooling/camel-manual/src/main/java/org/apache/camel/manual/ManualGenerator.java
----------------------------------------------------------------------
diff --git a/tooling/camel-manual/src/main/java/org/apache/camel/manual/ManualGenerator.java
b/tooling/camel-manual/src/main/java/org/apache/camel/manual/ManualGenerator.java
index 0cc3083..68f3294 100644
--- a/tooling/camel-manual/src/main/java/org/apache/camel/manual/ManualGenerator.java
+++ b/tooling/camel-manual/src/main/java/org/apache/camel/manual/ManualGenerator.java
@@ -44,6 +44,7 @@ public class ManualGenerator {
     String head;
     String version;
     String targetDir;
+    String skip;
     
     public ManualGenerator(String[] args) {
         page = args[0];
@@ -51,6 +52,7 @@ public class ManualGenerator {
         version = args[2];
         head = args[3];
         targetDir = args[4];
+        skip = args[5];
     }
     
     public void run() {
@@ -90,6 +92,10 @@ public class ManualGenerator {
         out.close();
     }
     private boolean doGenerate() throws MalformedURLException, IOException {
+        if (skip.equalsIgnoreCase("true")) {
+            // we don't want to generate the manual here
+            return false;
+        }
         URL url = new URL(page);
         File file = new File(targetDir, ".manualCache-" + url.getFile().substring(1));
         if (file.exists()) {


Mime
View raw message