mirror of https://git.sr.ht/~hrbrmstr/cruxjars
boB Rudis
5 years ago
6 changed files with 22 additions and 83 deletions
@ -0,0 +1,4 @@ |
|||
.PHONY: deps |
|||
|
|||
deps: |
|||
mvn dependency:copy-dependencies -DoutputDirectory=../inst/java |
@ -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 |
@ -1,13 +0,0 @@ |
|||
package is.rud.crux; |
|||
|
|||
/** |
|||
* Hello world! |
|||
* |
|||
*/ |
|||
public class App |
|||
{ |
|||
public static void main( String[] args ) |
|||
{ |
|||
System.out.println( "Hello World!" ); |
|||
} |
|||
} |
@ -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 ); |
|||
} |
|||
} |
Loading…
Reference in new issue