Browse code

add play.sh script

devnewton authored on 29/07/2014 at 14:12:54
Showing 4 changed files
... ...
@@ -17,7 +17,23 @@ Install
17 17
 
18 18
 The build.sh script generate installers for various OS in the target/release subfolder. Use them to install the game.
19 19
 
20
-Develop, debug, contribute
21
-==========================
20
+Run without install 
21
+===================
22
+
23
+Go to the source folder and run the play.sh script using bash:
24
+
25
+        bash play.sh
26
+
27
+Develop, debug
28
+==============
29
+
30
+Ned et les maki is maven based project, open it with Netbeans or Eclipse.
31
+
32
+Contribute
33
+==========
34
+
35
+Please contact us:
36
+
37
+- by mail: please.reply @ geekygoblin.org
38
+- using IRC: #GGP on freenode.net.
22 39
 
23
-Please contact us
24 40
\ No newline at end of file
... ...
@@ -198,6 +198,36 @@ THE SOFTWARE. -->
198 198
             <artifactId>guice</artifactId>
199 199
         </dependency>
200 200
     </dependencies>
201
+    <profiles>
202
+        <profile>
203
+            <id>play</id>
204
+            <build>
205
+                <plugins>
206
+                    <plugin>
207
+                        <groupId>org.codehaus.mojo</groupId>
208
+                        <artifactId>exec-maven-plugin</artifactId>
209
+                        <version>1.1.1</version>
210
+                        <executions>
211
+                            <execution>
212
+                                <phase>integration-test</phase>
213
+                                <goals>
214
+                                    <goal>exec</goal>
215
+                                </goals>
216
+                            </execution>
217
+                        </executions>
218
+                        <configuration>
219
+                            <executable>java</executable>
220
+                            <arguments>
221
+                                <argument>-cp</argument>
222
+                                <argument>${project.build.directory}/lib/*:${project.build.directory}/${project.build.finalName}.jar</argument>
223
+                                <argument>org.geekygoblin.nedetlesmaki.game.Main</argument>
224
+                            </arguments>
225
+                        </configuration>
226
+                    </plugin>
227
+                </plugins>
228
+            </build>
229
+        </profile>
230
+    </profiles>
201 231
 </project>
202 232
 
203 233
 
204 234
new file mode 100755
... ...
@@ -0,0 +1,2 @@
0
+#!/bin/bash
1
+mvn -Pplay integration-test
... ...
@@ -266,6 +266,9 @@
266 266
             </activation>
267 267
         </profile>
268 268
         <profile>
269
+            <id>play</id>
270
+        </profile>
271
+        <profile>
269 272
             <id>android</id>
270 273
         </profile>
271 274
         <profile>