Skip to content

Commit 8603951

Browse files
author
Jeff
committed
fit in parameters and added functionality about config files. v1 finished
1 parent c10d00d commit 8603951

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.MD

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ Unix:
99
1. `bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic xmltest`
1010
2. `git clone https://github.com/jeff1191/XMLKafkaGenerator`
1111
3. `cd XMLKafkaGenerator; mvn package`
12-
4. `mv target/XMLKafkaGenerator ~; cd ~/XMLKafkaGenerator`
12+
4. `mv target/XMLKafkaGeneratorApp ~; cd ~/XMLKafkaGeneratorApp`
1313
5. `java -jar XMLKafkaGenerator-v1.0-SNAPSHOT.jar example.xml application.conf`
1414

1515
Windows OS:
1616
1. `bin\windows\kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic xmltest`
1717
2. `git clone https://github.com/jeff1191/XMLKafkaGenerator`
1818
3. `cd XMLKafkaGenerator & mvn package`
19-
4. `move target\XMLKafkaGenerator %USERPROFILE% & cd %USERPROFILE%\XMLKafkaGenerator`
19+
4. `move target\XMLKafkaGeneratorApp %USERPROFILE% & cd %USERPROFILE%\XMLKafkaGeneratorApp`
2020
5. `java -jar XMLKafkaGenerator-v1.0-SNAPSHOT.jar example.xml application.conf`
2121

2222
You can check messages using kafka-console-consumer.

pom.xml

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@
110110
</goals>
111111
<configuration>
112112
<tasks>
113-
<mkdir dir="target/XMLKafkaGenerator"/>
114-
<copy file="${project.basedir}/conf/application.conf" tofile="${basedir}/target/XMLKafkaGenerator/application.conf"/>
115-
<copy file="${project.basedir}/conf/example.xml" tofile="${basedir}/target/XMLKafkaGenerator/example.xml"/>
116-
<copy file="${project.basedir}/target/XMLKafkaGenerator-v${project.version}.${project.packaging}" tofile="${project.basedir}/target/XMLKafkaGenerator/XMLKafkaGenerator-v${project.version}.${project.packaging}"/>
113+
<mkdir dir="target/XMLKafkaGeneratorApp"/>
114+
<copy file="${project.basedir}/conf/application.conf" tofile="${basedir}/target/XMLKafkaGeneratorApp/application.conf"/>
115+
<copy file="${project.basedir}/conf/example.xml" tofile="${basedir}/target/XMLKafkaGeneratorApp/example.xml"/>
116+
<copy file="${project.basedir}/target/XMLKafkaGenerator-v${project.version}.${project.packaging}" tofile="${project.basedir}/target/XMLKafkaGeneratorApp/XMLKafkaGenerator-v${project.version}.${project.packaging}"/>
117117
</tasks>
118118
</configuration>
119119
</execution>

0 commit comments

Comments
 (0)