Skip to content

Commit

Permalink
Adding maven build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew McCullough committed Jul 25, 2012
1 parent bf7a9a5 commit d2280d0
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.log
output/
build/
target/
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ambientideas</groupId>
<artifactId>egitdemo</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>egitdemo</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
17 changes: 17 additions & 0 deletions src/main/java/com/ambientideas/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.ambientideas;

/**
* Hello again
* Hello world!
* Hello
*/
public class App
{
public static void main( String[] args )
{
//Comment
System.out.println( "Hello World!" );
}
}

//foo
43 changes: 43 additions & 0 deletions src/test/java/com/ambientideas/AppTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package com.ambientideas;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

//Pending comments

//Some comments on the master branch
//Added some comments on the branch for the egit demo

/**
* 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 comments on commit d2280d0

Please sign in to comment.