diff --git a/.gitignore b/.gitignore index f0e5cfbc..9a33f906 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /.project .settings/ target/ +/log.roo diff --git a/pom.xml b/pom.xml index 66db8cf9..8031d864 100644 --- a/pom.xml +++ b/pom.xml @@ -3,9 +3,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 4.0.0 - org.springframework.samples.spring - spring-shell - 1.0.0.CI-SNAPSHOT + org.springframework.shell + core + 1.0.0-SNAPSHOT jar Spring Shell http://www.springframework.org diff --git a/samples/helloworld/.gitignore b/samples/helloworld/.gitignore new file mode 100644 index 00000000..9a33f906 --- /dev/null +++ b/samples/helloworld/.gitignore @@ -0,0 +1,6 @@ +/.classpath +/.project +.settings/ +target/ +/log.roo + diff --git a/samples/helloworld/.project b/samples/helloworld/.project new file mode 100644 index 00000000..154540ae --- /dev/null +++ b/samples/helloworld/.project @@ -0,0 +1,23 @@ + + + helloworld + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.m2e.core.maven2Nature + + diff --git a/samples/helloworld/pom.xml b/samples/helloworld/pom.xml new file mode 100644 index 00000000..fa89c14c --- /dev/null +++ b/samples/helloworld/pom.xml @@ -0,0 +1,137 @@ + + 4.0.0 + + org.springframework.shell.samples + helloworld + 1.0.0-SNAPSHOT + jar + + helloworld + http://maven.apache.org + + + org.springframework.shell.Bootstrap + true + 3.1.1.RELEASE + 1.0.0-SNAPSHOT + + + + + junit + junit + 4.7 + test + + + org.springframework + spring-test + ${spring.framework.version} + test + + + org.springframework + spring-context + ${spring.framework.version} + + + + org.springframework.shell + core + ${spring.shell.version} + + + + + cglib + cglib + 2.2.2 + + + log4j + log4j + 1.2.14 + + + + commons-io + commons-io + 1.4 + + + + + net.sourceforge.jline + jline + 1.0.S2-B + + + org.fusesource.jansi + jansi + 1.6 + + + org.mockito + mockito-all + 1.8.5 + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.5 + 1.5 + + + + org.apache.maven.plugins + maven-shade-plugin + + + package + + shade + + + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + + + ${jar.mainclass} + + + + + + + + + + + + + + spring-roo-repository + Spring Roo Maven Repository + http://spring-roo-repository.springsource.org/release + + + diff --git a/src/main/java/org/springframework/shell/plugin/HelloWorldPlugin.java b/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/HelloWorldPlugin.java similarity index 83% rename from src/main/java/org/springframework/shell/plugin/HelloWorldPlugin.java rename to samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/HelloWorldPlugin.java index fa79f398..7d9b9674 100644 --- a/src/main/java/org/springframework/shell/plugin/HelloWorldPlugin.java +++ b/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/HelloWorldPlugin.java @@ -1,4 +1,4 @@ -package org.springframework.shell.plugin; +package org.springframework.shell.samples.helloworld; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; diff --git a/src/main/java/org/springframework/shell/commands/HelloWorldCommands.java b/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/HelloWorldCommands.java similarity index 91% rename from src/main/java/org/springframework/shell/commands/HelloWorldCommands.java rename to samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/HelloWorldCommands.java index fc127edc..21e0e5a6 100644 --- a/src/main/java/org/springframework/shell/commands/HelloWorldCommands.java +++ b/samples/helloworld/src/main/java/org/springframework/shell/samples/helloworld/commands/HelloWorldCommands.java @@ -1,4 +1,4 @@ -package org.springframework.shell.commands; +package org.springframework.shell.samples.helloworld.commands; import org.springframework.roo.shell.CliAvailabilityIndicator; import org.springframework.roo.shell.CliCommand; diff --git a/src/main/resources/META-INF/spring/spring-shell-plugin.xml b/samples/helloworld/src/main/resources/spring-shell-plugin.xml similarity index 53% rename from src/main/resources/META-INF/spring/spring-shell-plugin.xml rename to samples/helloworld/src/main/resources/spring-shell-plugin.xml index ab94e0b4..fbbbf616 100644 --- a/src/main/resources/META-INF/spring/spring-shell-plugin.xml +++ b/samples/helloworld/src/main/resources/spring-shell-plugin.xml @@ -1,6 +1,6 @@ - org.springframework.shell.plugin.HelloWorldPlugin + org.springframework.shell.samples.helloworld.HelloWorldPlugin \ No newline at end of file diff --git a/src/main/resources/META-INF/spring/test.xml b/src/main/resources/META-INF/spring/test.xml deleted file mode 100644 index daac473b..00000000 --- a/src/main/resources/META-INF/spring/test.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - -