Skip to content

Commit 3446541

Browse files
committed
added a new example from FuseByExample for using drools and camel together; about to try auto-generate an archetype from it (wish me luck! :)
1 parent 80dfbeb commit 3446541

File tree

5 files changed

+119
-2
lines changed

5 files changed

+119
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
target
22
.idea
33
*.iml
4+
*.im
45
*.ipr
56
*.iws
67
overlays
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
pom.xml<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (C) FuseSource, Inc.
4+
http://fusesource.com
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
19+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
21+
<modelVersion>4.0.0</modelVersion>
22+
23+
<parent>
24+
<groupId>org.fusesource.archetypes</groupId>
25+
<artifactId>archetypes</artifactId>
26+
<version>99-master-SNAPSHOT</version>
27+
</parent>
28+
29+
<artifactId>archetype-generator</artifactId>
30+
31+
<name>${project.artifactId}</name>
32+
<description>FuseSource :: Archetype Generator</description>
33+
34+
<prerequisites>
35+
<maven>2.0.9</maven>
36+
</prerequisites>
37+
38+
<properties>
39+
</properties>
40+
41+
<dependencies>
42+
43+
44+
<!-- testing -->
45+
</dependencies>
46+
47+
<build>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.codehaus.mojo</groupId>
51+
<artifactId>exec-maven-plugin</artifactId>
52+
<version>1.1.1</version>
53+
<executions>
54+
<execution>
55+
<goals>
56+
<goal>java</goal>
57+
</goals>
58+
</execution>
59+
</executions>
60+
<configuration>
61+
<mainClass>org.fusesource.tooling.archetype.generator.Main</mainClass>
62+
<classpathScope>test</classpathScope>
63+
<systemProperties>
64+
<systemProperty>
65+
<key>basedir</key>
66+
<value>${basedir}</value>
67+
</systemProperty>
68+
</systemProperties>
69+
</configuration>
70+
</plugin>
71+
</plugins>
72+
</build>
73+
</project>

tooling/archetypes/pom.xml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (C) FuseSource, Inc.
4+
http://fusesource.com
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
19+
<project xmlns="http://maven.apache.org/POM/4.0.0"
20+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<parent>
23+
<groupId>org.fusesource</groupId>
24+
<artifactId>tooling</artifactId>
25+
<version>99-master-SNAPSHOT</version>
26+
</parent>
27+
<modelVersion>4.0.0</modelVersion>
28+
29+
<groupId>org.fusesource.archetypes</groupId>
30+
<artifactId>archetypes</artifactId>
31+
<packaging>pom</packaging>
32+
<name>FuseSource :: Tooling :: Archetypes</name>
33+
34+
<modules>
35+
<module>examples</module>
36+
<!--
37+
<module>archetype-generator</module>
38+
-->
39+
</modules>
40+
41+
42+
</project>

tooling/camel-tooling-util/src/test/resources/drools-spring.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
<drools:ksession id="ksession1" type="stateless" name="ksession1" kbase="kbase1" node="node1"/>
2121

22-
<bean id="droolsHelper" class="com.redhat.example.drools.DroolsCommandHelper"/>
22+
<bean id="droolsHelper" class="org.fusesource.example.drools.DroolsCommandHelper"/>
2323

24-
<bean id="personHelper" class="com.redhat.example.drools.PersonHelper"/>
24+
<bean id="personHelper" class="org.fusesource.example.drools.PersonHelper"/>
2525

2626
<camelContext xmlns="http://camel.apache.org/schema/spring">
2727

tooling/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<name>FuseSource :: Tooling</name>
3333

3434
<modules>
35+
<module>archetypes</module>
3536
<module>tooling-fabric-all</module>
3637
<module>tooling-jclouds-all</module>
3738
<module>camel-tooling-util</module>

0 commit comments

Comments
 (0)