Skip to content

Commit d2280d0

Browse files
author
Matthew McCullough
committed
Adding maven build script
1 parent bf7a9a5 commit d2280d0

File tree

4 files changed

+79
-0
lines changed

4 files changed

+79
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
*.log
33
output/
44
build/
5+
target/

pom.xml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.ambientideas</groupId>
5+
<artifactId>egitdemo</artifactId>
6+
<packaging>jar</packaging>
7+
<version>1.0-SNAPSHOT</version>
8+
<name>egitdemo</name>
9+
<url>http://maven.apache.org</url>
10+
<dependencies>
11+
<dependency>
12+
<groupId>junit</groupId>
13+
<artifactId>junit</artifactId>
14+
<version>3.8.1</version>
15+
<scope>test</scope>
16+
</dependency>
17+
</dependencies>
18+
</project>
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.ambientideas;
2+
3+
/**
4+
* Hello again
5+
* Hello world!
6+
* Hello
7+
*/
8+
public class App
9+
{
10+
public static void main( String[] args )
11+
{
12+
//Comment
13+
System.out.println( "Hello World!" );
14+
}
15+
}
16+
17+
//foo
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package com.ambientideas;
2+
3+
import junit.framework.Test;
4+
import junit.framework.TestCase;
5+
import junit.framework.TestSuite;
6+
7+
//Pending comments
8+
9+
//Some comments on the master branch
10+
//Added some comments on the branch for the egit demo
11+
12+
/**
13+
* Unit test for simple App.
14+
*/
15+
public class AppTest
16+
extends TestCase
17+
{
18+
/**
19+
* Create the test case
20+
*
21+
* @param testName name of the test case
22+
*/
23+
public AppTest( String testName )
24+
{
25+
super( testName );
26+
}
27+
28+
/**
29+
* @return the suite of tests being tested
30+
*/
31+
public static Test suite()
32+
{
33+
return new TestSuite( AppTest.class );
34+
}
35+
36+
/**
37+
* Rigourous Test :-)
38+
*/
39+
public void testApp()
40+
{
41+
assertTrue( true );
42+
}
43+
}

0 commit comments

Comments
 (0)