You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2013/12/13 04:19:14 UTC

git commit: CAMEL-7065 Disable generate manul build by using profile fastinstall

Updated Branches:
  refs/heads/master 4dc455378 -> 24fd3b64d


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/24fd3b64
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/24fd3b64
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/24fd3b64

Branch: refs/heads/master
Commit: 24fd3b64d32359e678f41469e687067bd7868a23
Parents: 4dc4553
Author: Willem Jiang <wi...@gmail.com>
Authored: Fri Dec 13 11:10:07 2013 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Fri Dec 13 11:18:39 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/24fd3b64/tooling/camel-manual/pom.xml
----------------------------------------------------------------------
diff --git a/tooling/camel-manual/pom.xml b/tooling/camel-manual/pom.xml
index 56925b3..ece6fdc 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/24fd3b64/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()) {