|
Re: Compile code in SVN remote repository [message #1733971 is a reply to message #1733962] |
Thu, 02 June 2016 14:28 |
|
On 06/02/2016 08:19 AM, Sam Lee wrote:
> I am using Eclipse Juno with SVN and Maven. I have my individual
> workspace and able to build my project there. I have made some changes
> in my local and committed those changes to the Remote repository. When I
> view through the SVN repository exploring perspective I see that my
> source code is reflected in the SVN but my local Bin folder is different
> from the SVN Bin folder. How do I commit my Bin folder to the SVN
> repository or build the SVN repository ?
Why are you keeping bin in version control? Its artifacts are
reproducible (precisely by doing a build). Unless there's a very good
reason for this, it's wasteful to keep binaries under version control.
Neither svn nor git are especially good at "versioning" binaries: they
basically remain full copies, I think.
Add the following line to your .svnignore file:
bin/
|
|
|
|
Re: Compile code in SVN remote repository [message #1733976 is a reply to message #1733973] |
Thu, 02 June 2016 14:47 |
|
On 06/02/2016 08:33 AM, Sam Lee wrote:
> Thanks for the suggestion. I will add the Bin folder to Ignore.
> how do I build/compile the SVN repository code? I am compiling my local
> copy using the Build Project option in Eclipse IDE.
I confess I don't have enough information on your project.
I'm assuming you...
1. cloned the svn project into your filesystem
2. set up a workspace telling Eclipse where that project is (rather than
putting it in your workspace)
3. are building it in Eclipse
Are you asking about a command-line build action or one invoked from
inside Eclipse? Do you have a build script? Ant? Maven? Etc.
P.S. You might also do this to get rid of the excess baggage in svn:
$ svn rm bin
|
|
|
|
Re: Compile code in SVN remote repository [message #1733982 is a reply to message #1733980] |
Thu, 02 June 2016 15:22 |
|
On 06/02/2016 09:12 AM, Sam Lee wrote:
> either option is fine. i have installed Maven and have the pom.xml
> configured. is that the build script?
> I am a newbie and have set up the eclipse, svn and maven through some
> tutorial & help on various forums.
Maven is probably the best way to do it for many reasons.
|
|
|
|
Re: Compile code in SVN remote repository [message #1733987 is a reply to message #1733984] |
Thu, 02 June 2016 16:14 |
|
On 06/02/2016 09:30 AM, Sam Lee wrote:
> how do i perform the build using Maven? Do I run the Pom.xml file inside
> Eclipse?
You can, but I don't know how. I happen to be a UNIX/Linux command-line
guy and I always do it outside:
$ mvn clean compile test package install etc.
There is an Eclipse m2 forum for Maven I think. Good to ask there too.
|
|
|
Powered by
FUDForum. Page generated in 0.04580 seconds