Browse Source

simplified Makefile

master
boB Rudis 5 years ago
parent
commit
a73d2f2313
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 4
      java/Makefile
  2. 14
      java/crux/Makefile
  3. 13
      java/crux/src/main/java/is/rud/crux/App.java
  4. 38
      java/crux/src/test/java/is/rud/crux/AppTest.java
  5. 0
      java/pom.xml

4
java/Makefile

@ -0,0 +1,4 @@
.PHONY: deps
deps:
mvn dependency:copy-dependencies -DoutputDirectory=../inst/java

14
java/crux/Makefile

@ -1,14 +0,0 @@
.PHONY: clean pkg deps run
pkg:
mvn --quiet package
cp target/crux-1.0-SNAPSHOT.jar ../../inst/java
clean:
mvn clean
deps:
mvn dependency:copy-dependencies -DoutputDirectory=../../inst/java
new:
mvn archetype:generate -DgroupId=is.rud.crux -DartifactId=crux -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false && mv Makefile crux

13
java/crux/src/main/java/is/rud/crux/App.java

@ -1,13 +0,0 @@
package is.rud.crux;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}

38
java/crux/src/test/java/is/rud/crux/AppTest.java

@ -1,38 +0,0 @@
package is.rud.crux;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}

0
java/crux/pom.xml → java/pom.xml

Loading…
Cancel
Save