Permalink
Browse files

Fixed paths on windows

  • Loading branch information...
1 parent 50999c1 commit dfaf29306f6a6f9946af0c838aece79aab989916 @krosenvold krosenvold committed with slnc Oct 12, 2009
View
@@ -1,7 +1,9 @@
-This project is a standard maven project, that can be built with mvn install
-the atlassian stuff is referenced in the standard maven way.
+You need apache maven to build this project.
+This project is a standard maven project, build with "mvn install".
-You WILL need jms.jar v. 1.1 though. After you have downloaded it, you can use
-the enclosed script to install it;
+The jar file will be located in your target directory, install by typing:
+
+cp target/git-plugin-1.1.3.jar $BAMBOO_INSTALL_DIR/webapp/WEB-INF/lib
+
+Make sure you delete old versions of the plugin under WEB-INF/lib
-./installJms <path-to>/jms-1.1.jar
View
2 README
@@ -26,7 +26,7 @@ able to checkout neither.
1.1.3 RELEASE NOTES
-(big thanks to Kristian Roselvold)
+(big thanks to Kristian Rosenvold)
- This should support branches properly. Please note that when changing
branches on a build, you still need to clean the build using the bamboo
console.
View
@@ -87,6 +87,12 @@
<url>https://maven.atlassian.com/maven1</url>
<layout>legacy</layout>
</repository>
+ <repository>
+ <id>jboss-with-jms</id> <!-- This repo is included because it contains jms-1.1.jar ;) -->
+ <url>http://repository.jboss.com/maven2</url>
+ </repository>
+
+
</repositories>
<pluginRepositories>
@@ -208,7 +208,7 @@ private void submodule_update(File sourceDir) throws IOException, JavaGitExcepti
private File getCheckoutDirectory(String planKey) throws RepositoryException
{
- return new File(getSourceCodeDirectory(planKey), "checkout");
+ return getSourceCodeDirectory(planKey);
}
/**
@@ -20,12 +20,16 @@
*/
public class GitRepositoryTest extends TestCase
{
+ private void getTestRepoFromGithub(GitRepository gitRepository, File sourceDir) throws IOException, JavaGitException {
+ gitRepository.cloneOrFetch(sourceDir, "git://github.com/krosenvold/bgit-unittest.git");
+ }
+
@Test
public void testClone() throws IOException, JavaGitException {
GitRepository gitRepository = new GitRepository();
gitRepository.setRemoteBranch("feature1");
File sourceDir = getCheckoutDirectory("testRepo1");
- gitRepository.cloneOrFetch(sourceDir, "git://github.com/krosenvold/bgit-unittest.git");
+ getTestRepoFromGithub(gitRepository, sourceDir);
Ref ref = gitRepository.gitStatus(sourceDir);
assertEquals("feature1", ref.getName());
}
@@ -35,7 +39,7 @@ public void testCloneDefault() throws IOException, JavaGitException {
// We dont support switching branches on a checkout yet, so check out to different folder.
GitRepository gitRepository = new GitRepository();
File sourceDir = getCheckoutDirectory("testRepo2");
- gitRepository.cloneOrFetch(sourceDir, "git://github.com/krosenvold/bgit-unittest.git");
+ getTestRepoFromGithub(gitRepository, sourceDir);
Ref ref = gitRepository.gitStatus(sourceDir);
assertEquals("featureDefault", ref.getName());
}
@@ -45,7 +49,7 @@ public void testHistory() throws IOException, JavaGitException, RepositoryExcept
GitRepository gitRepository = new GitRepository();
gitRepository.setRemoteBranch("featureDefault");
File sourceDir = getCheckoutDirectory("testRepo1");
- gitRepository.cloneOrFetch(sourceDir, "git://github.com/krosenvold/bgit-unittest.git");
+ getTestRepoFromGithub(gitRepository, sourceDir);
// Fri Oct 9 14:51:41 2009 +0200

0 comments on commit dfaf293

Please sign in to comment.