Tag: java

JGit get pulled files

I have one repository in two different folders ( folder1 and folder2). Within repositories has a “oldFile” file In the folder1 I do the following steps: echo 123 > oldFile touch newFile git add newFile oldFile git commit -m “Change the oldFile from folder1 and add the newFile” oldFile newFile git push origin master After […]

JGit checkout vs `git checkout` problems

tl;dr JGit’s checkout throws exceptions while command line git checkout works fine I’m currently trying to use JGit to check out certain revisions from an online Git repository, in Java (for work). My current approach is (and I’m very new to Git, coming from a SVN background, so this may be wrong): clone the repository […]

Are java .class files needed after an application is running?

I had a hard time writing the title to this question, but here is my situation and what I am asking: I have a Java project that I run “ant test” on to run the tests The tests take about 10 minutes to run Can I switch to a different Git branch in the middle […]

Eclipse Java Projects in Git

I am trying to figure out the best way to create a java project in GIT. In particular I would like to create the git repository such that when I import from git in Eclipse, the project is automatically created correctly with all its .project settings intact and all other settings setup. I.E. if I […]

how can i version a java application between builds?

Currently, my Java applications have the same version on every build. I am using Maven, but I am not sure how to set up the workflow to add a version to the application on each build. I imagine this works with my version control system? I am using git, does this mean I need git […]

does Java have API wrappers around subversion and Git?

Curious if there any API wrappers for Git and Subversion for Java? I want to be able to pullup the changesets and souce code (and diffs) from Subversion and Git repos. Is this possible? Any pre-built APIs?

How to build Eclipse JDT Core from source code via Git?

I want to build Eclipse JDT Core from source code via Git. Naïvely, I cloned git://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git and tried to run mvn validate (the most basic of Maven phases) from the Git master branch but this failed with errors below. I am a Debian Linux user with Maven 3.0.5 and JDK 1.7 installed. I am interested […]

Eclipse or Maven add /target to gitignore

I’m using Maven and Git with a Java EE project (EAR, EJB and WEB), in Eclipse the workspace is rebuilding in loop beacause something adds “/target” to my .gitignore. This is my gitignore : *.class *.settings *.project *.classpath target # Package Files # *.jar *.war *.ear /target /target /target /target /target /target … (more and […]

Create Eclipse Project from Android Git

I’ve downloaded one of the open source Android Applications (the music application) from the Android git, and I’m trying to create a new project from the source. Creating a new project using that existing source doesn’t work giving me an “invalid description error”. Any help?

Arrow up and number on Eclipse meaning

I’m working on a project using Eclipse with Maven and Bitbucket. Right now I can’t do any commit, I mean even if I press the commit button, I can’t see it on Bitbucket. Furthermore, next to my project’s name I got a symbol with an arrow up and the number 2 next to it. What […]

Git Baby is a git and github fan, let's start git clone.