Tag: java

How can I automatically add a datestamp field to a java class marking a commit date

I can’t figure out a nice, succinct title for this question, so bear with me! My overall goal is to have a variable in my source code which give the date, time, (and possibly commit id) of a class so that when exceptions get caught, I could output the error along with that said variable […]

Creating a new root directory in an Eclipse project under version control

I’m working on a group project for my software engineering course, and my professor has indicated that I set up the directory structure incorrectly on Github. I’d like to correct the issue now to avoid a grade penalty, but I’m very new to using Git. Basically we have a structure that is as follows on […]

Merge local Java project to existing git repo

I have checked out the source from a git repo, because i was forced to use someone elses svn repo for a while, and now i want to re-check in my source in the original git repo. We are using eclipse (STS) for the project. The perfect solution would be to check in the changes […]

How do I use LibGDX, Gradle, Git, and Eclipse together?

I have a LibGDX project for Android and Windows which I created with the LibGDX project setup app (https://github.com/libgdx/libgdx/wiki/Project-Setup-Gradle), and I have no problems running the project on my main development computer. I want to work on this project from multiple computers and with other developers using Git, and so I placed all three projects […]

how to insert a document to bitbucket using java?

I can insert a document to bitbucket using git. This is fine. Now I want to insert some documents to bitbucket using Java code. is that possible? do we any other ways to push to bitbucket using some code time to time or something like auto. provide me some suggestions. Thanks in Advance

Force execution of build action hook on Openshift

I have an Openshift Online application, created with Spring boot and based on a DIY cartridge. It basically loads Java 8 and Maven from the web (action hook pre_start), builds my Java 8 Maven project (action hook build) and starts the application (action hook start). When I push something in the git repository, it usually […]

Jenkins finds cannot find ssh key

I’ve got an ssh key in ~/.ssh/id_rsa.pub when I login as the jenkins user. I’ve imported this into bitbucket correctly and it has accepted the key. When I try to do a git clone (to the correct URL) I still get…. Building in workspace /var/lib/jenkins/jobs/Google adwords/workspace Checkout:workspace / /var/lib/jenkins/jobs/Google adwords/workspace – hudson.remoting.LocalChannel@2c473996 Using strategy: Default […]

gitignore apikeys in my project

I want to make an java application. This is stored on gitHub (so uses git for versioning). Now this programm uses apikeys in example from Google. I want to hide this Api key in the versioning system (so that no one other can use it). I’ve read something about the .gitignore file, but i don’t […]

Replicating svn:externals with git

I recently joined a new team. This team has been using Subversion for their source control. They asked me to investigate the possibility of moving the source code to Git. This seemed like a trivial exercise until I realized they have a large number of svn:externals. The project is a large Java EE project that […]

Is it a bad idea to put a jar file in the vendor/ directory and add it to the git repo?

I have a Rails 3 project that uses some java jar files. I’m putting these jars in the vendor/ directory and adding them to the git repo. But these jars can be large (e.g. 22MB), and they are binaries. On the other hand, it’s convenient to store them into the repo with the Ruby code […]

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