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 2009/10/12 14:30:21 UTC
svn commit: r824318 -
/camel/branches/camel-1.x/components/camel-spring/pom.xml
Author: ningjiang
Date: Mon Oct 12 12:30:21 2009
New Revision: 824318
URL: http://svn.apache.org/viewvc?rev=824318&view=rev
Log:
Fixed camel-spring build issue on SunJDK
Modified:
camel/branches/camel-1.x/components/camel-spring/pom.xml
Modified: camel/branches/camel-1.x/components/camel-spring/pom.xml
URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-spring/pom.xml?rev=824318&r1=824317&r2=824318&view=diff
==============================================================================
--- camel/branches/camel-1.x/components/camel-spring/pom.xml (original)
+++ camel/branches/camel-1.x/components/camel-spring/pom.xml Mon Oct 12 12:30:21 2009
@@ -371,6 +371,74 @@
</build>
</profile>
<profile>
+ <id>enable-schemagen-sunjdk</id>
+ <activation>
+ <property>
+ <name>java.vendor</name>
+ <value>Sun Microsystems Inc.</value>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>process-sources</id>
+ <phase>process-sources</phase>
+ <configuration>
+ <tasks>
+ <taskdef name="schemagen" classname="com.sun.tools.jxc.SchemaGenTask" classpathref="maven.plugin.classpath"/>
+
+ <echo>Copying to code together for the XSD generation</echo>
+ <mkdir dir="${project.build.directory}/schema-src" />
+ <copy todir="${project.build.directory}/schema-src">
+ <fileset dir="${basedir}/src/main/java">
+ <include name="org/apache/camel/spring/Camel*.java" />
+ <include name="org/apache/camel/spring/Endpoint*.java" />
+ <include name="org/apache/camel/spring/package-info.java" />
+ </fileset>
+ <fileset dir="${basedir}/../../camel-core/src/main/java">
+ <include name="org/apache/camel/model/**/*.java" />
+ <include name="org/apache/camel/ExchangePattern.java" />
+ <include name="org/apache/camel/package-info.java" />
+ </fileset>
+ </copy>
+
+ <echo>Generating XSD schema</echo>
+ <mkdir dir="${project.build.directory}/schema" />
+ <schemagen srcdir="${project.build.directory}/schema-src" destdir="${project.build.directory}/schema">
+ <schema namespace="http://activemq.apache.org/camel/schema/spring" file="camel-spring.xsd"/>
+ <classpath refid="maven.compile.classpath"/>
+ </schemagen>
+ <copy file="${project.build.directory}/schema/camel-spring.xsd"
+ tofile="${project.build.directory}/schema/camel-spring-v${camel.schema.version}.xsd"/>
+ <replace file="${project.build.directory}/schema/camel-spring-v${camel.schema.version}.xsd"
+ token="http://activemq.apache.org/camel/schema/spring" value="http://activemq.apache.org/camel/schema/spring/v${camel.schema.version}"/>
+
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>com.sun</groupId>
+ <artifactId>tools</artifactId>
+ <version>1.5.0</version>
+ <scope>system</scope>
+ <systemPath>${java.home}/../lib/tools.jar</systemPath>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
<id>on-ibmjdk</id>
<activation>
<property>