Repository: camel Updated Branches: refs/heads/master 485748070 -> e7038c0af
Copy json files we need to gather the component list Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/28c27b3c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/28c27b3c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/28c27b3c Branch: refs/heads/master Commit: 28c27b3cf671ef2d8369f8ea732536f4d63ce026 Parents: 6bd3ad9 Author: Claus Ibsen <davscl...@apache.org> Authored: Thu Nov 13 15:17:38 2014 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu Nov 13 15:17:38 2014 +0100 ---------------------------------------------------------------------- platforms/commands/commands-core/pom.xml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/28c27b3c/platforms/commands/commands-core/pom.xml ---------------------------------------------------------------------- diff --git a/platforms/commands/commands-core/pom.xml b/platforms/commands/commands-core/pom.xml index 989f065..d94ad2a 100644 --- a/platforms/commands/commands-core/pom.xml +++ b/platforms/commands/commands-core/pom.xml @@ -33,6 +33,8 @@ <properties> <camel.osgi.export.pkg>org.apache.camel.commands.*</camel.osgi.export.pkg> + <camel.core.dir>../../../camel-core/</camel.core.dir> + <components.dir>../../../components/</components.dir> </properties> <dependencies> @@ -43,6 +45,16 @@ <artifactId>camel-core</artifactId> </dependency> <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>components</artifactId> + <version>${project.version}</version> + <type>pom</type> + </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-ftp</artifactId> + </dependency> + <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </dependency> @@ -68,6 +80,36 @@ <build> <plugins> + + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <version>1.7</version> + <executions> + <execution> + <phase>generate-sources</phase> + <configuration> + <target> + <echo>Copying component json descriptors</echo> + <copy todir="${project.basedir}/target/classes/components/" flatten="true"> + <fileset dir="${camel.core.dir}"> + <include name="**/target/classes/org/apache/camel/**/*.json"/> + </fileset> + </copy> + <copy todir="${project.basedir}/target/classes/components/" flatten="true"> + <fileset dir="${components.dir}"> + <include name="**/target/classes/org/apache/camel/**/*.json"/> + </fileset> + </copy> + <!-- create a single file that has a full list of all the component names, with a fixed name --> + </target> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> @@ -75,6 +117,7 @@ <configuration> <instructions> <Private-Package> + components, org.apache.camel.commands.internal </Private-Package> </instructions>