SVN Build, Do It Yourself
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: SVN Build, Do It Yourself
by Snacko » 18 Sep 2010, 23:13
Well creating one jar is as easy as decompressing all the jars from lib directory and packaging them with forge directory as one jar, however I don't see any advantage doing so as they stay pretty much the same and you save some space if you have couple versions running alongside if possible.
You can create a bat with this
I was a bit lazy and didn't include revision in zip filename as it's kind of a hassle under cmd. I can add it if it's really needed.
You can create a bat with this
- Code: Select all
build\svn.exe info forge-svn
pause
I was a bit lazy and didn't include revision in zip filename as it's kind of a hassle under cmd. I can add it if it's really needed.
Re: SVN Build, Do It Yourself
by jeffwadsworth » 20 Oct 2010, 22:26
Hello. I just wanted to add my "Thanks" to the list. Works great. I am really impressed with the v2.3. You guys kick ass.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: SVN Build, Do It Yourself
by slapshot5 » 11 Nov 2010, 05:26
Forge is also now buildable with Apache Ant. This will allow people on Mac/Windows/BSD/Unix/Linux/etc... to track SVN without Eclipse.
Simply:
1. update svn via the instructions on the googlecode site
2. browse to the Forge root directory
3. type "ant" (minus the quotes) to build
4. type "ant Forge" to run
I will look into building the jar so it is more portable.
-slapshot5
Simply:
1. update svn via the instructions on the googlecode site
2. browse to the Forge root directory
3. type "ant" (minus the quotes) to build
4. type "ant Forge" to run
I will look into building the jar so it is more portable.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: SVN Build, Do It Yourself
by Rob Cashwalker » 12 Nov 2010, 02:08
This assumes one is advanced enough to have (or know that they have) Apache Ant in the first place.... I would think such a person would be just as likely to have no trouble doing it with eclipse anyway.
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: SVN Build, Do It Yourself
by slapshot5 » 12 Nov 2010, 06:47
True enough. That was only step 1 though. Once I get a couple shell scripts wrapped around this, it won't be any harder than the Windoze-based stuff.Rob Cashwalker wrote:This assumes one is advanced enough to have (or know that they have) Apache Ant in the first place.... I would think such a person would be just as likely to have no trouble doing it with eclipse anyway.
And, the laptop I'm currently on can't have Eclipse installed on it though. Not enough space.
Just another option.
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: SVN Build, Do It Yourself
by Rob Cashwalker » 12 Nov 2010, 18:15
Scripts are good, but it still requires a piece of software that isn't exactly main stream... Until you posted this I didn't even know Apache Ant existed....
The Force will be with you, Always.
-
Rob Cashwalker - Programmer
- Posts: 2167
- Joined: 09 Sep 2008, 15:09
- Location: New York
- Has thanked: 5 times
- Been thanked: 40 times
Re: SVN Build, Do It Yourself
by Snacko » 13 Nov 2010, 19:26
You can run ant via eclipse, right click and run as ant task, however unless you changed compiler for ant you need java jdk for compiling.
Re: SVN Build, Do It Yourself
by slapshot5 » 13 Nov 2010, 19:55
The main point of adding the ant script is this:
I am currently typing on a laptop running FreeBSD 6.3. It only has a 4 GB hard drive. I can't install Eclipse. But I can install subversion and Ant. This allows me to play a current revision of Forge instead of just the Betas.
Also, with the FreeBSD ports system, (when and if I integrate Forge into it), Ant is installed as a dependency with no interaction from the user. It Just Works.
-slapshot5
I am currently typing on a laptop running FreeBSD 6.3. It only has a 4 GB hard drive. I can't install Eclipse. But I can install subversion and Ant. This allows me to play a current revision of Forge instead of just the Betas.
Also, with the FreeBSD ports system, (when and if I integrate Forge into it), Ant is installed as a dependency with no interaction from the user. It Just Works.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: SVN Build, Do It Yourself
by Snacko » 13 Nov 2010, 19:59
ant + jdk can't be smaller than eclipse only so this point is void, however yes if you can have jdk then yes it's smaller to get ant only.
I was thinking you would provide ant for both jdk and eclipse, while there are already other ways to build it under eclipse.
I was thinking you would provide ant for both jdk and eclipse, while there are already other ways to build it under eclipse.
Re: SVN Build, Do It Yourself
by slapshot5 » 13 Nov 2010, 20:52
That you'll have to explain.Snacko wrote:ant + jdk can't be smaller than eclipse only so this point is void,
For FreeBSD:
The Eclipse package is 151 MB.
Ant is 7.3 MB
JDK is around 60 MB.
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: SVN Build, Do It Yourself
by Snacko » 15 Nov 2010, 21:38
Well I meant eclipse compiler (latest 3.6 branch download, it's also called JDT Core Batch Compiler on their site) 1.6MB + JRE ~30MB + Ant. I also assume you already have JRE in your setup above so you save 60 MB unless you really need JDK for other packages not included in JRE.
Also some test made show that ecj can be up to couple times faster than javac if speed of compiling is of concern.
Also some test made show that ecj can be up to couple times faster than javac if speed of compiling is of concern.
Re: SVN Build, Do It Yourself
by digorymuck » 18 Dec 2010, 23:12
Hi,
I've read a lot of this thread, but I'm having trouble understanding what it is I need to do because I am not a programmer and am not familiar with a lot of the language being used here.
Assuming I have the 11/30 version of Forge installed on my PC, what is the step-by-step method, in layman's terms, to update to the most recent version (or SVN)? Are there additional programs that I need to do this (like Eclipse or TortoiseSVN)?
I found the google sourcecode page that shows the changes that are literally being made every few hours, and I'd like to know precisely how to implement these changes, but there doesn't seem to be any one document that outlines this (probably because it's all second nature to programmers). If there is, I apologize, but I haven't found it.
Please help!
Thanks,
DMuck
I've read a lot of this thread, but I'm having trouble understanding what it is I need to do because I am not a programmer and am not familiar with a lot of the language being used here.
Assuming I have the 11/30 version of Forge installed on my PC, what is the step-by-step method, in layman's terms, to update to the most recent version (or SVN)? Are there additional programs that I need to do this (like Eclipse or TortoiseSVN)?
I found the google sourcecode page that shows the changes that are literally being made every few hours, and I'd like to know precisely how to implement these changes, but there doesn't seem to be any one document that outlines this (probably because it's all second nature to programmers). If there is, I apologize, but I haven't found it.
Please help!
Thanks,
DMuck
- digorymuck
- Posts: 6
- Joined: 15 Dec 2010, 10:55
- Has thanked: 0 time
- Been thanked: 0 time
Re: SVN Build, Do It Yourself
by Sloth » 18 Dec 2010, 23:49
Read the first post. Do what it says. Enjoy. Nothing more.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: SVN Build, Do It Yourself
by timmermac » 19 Dec 2010, 04:22
The 3rd page of this thread has probably a better answer.
"I just woke up, haven't had coffee, let alone a pee in 7 days, and I find out you stole my ass and made a ...mini-me! Carter, I should be irked currently, yes?" - Jack O'Neill
Re: SVN Build, Do It Yourself
by Chris H. » 19 Dec 2010, 11:37
Snacko's scripts are probably the easiest way to keep your local version of forge up to date with the SVN. Those who are interested in using the scripts should read the entire topic from start to finish. Timmermac is right, there is some good info on the third page.
The scripts require the Windows OS and some technical ability. We have a small group of people here who use the scripts and they are probably the best source of information if a newcomer gets confused has problems in getting it to work.
The devs use a different system to access the SVN. They tend to use a combination of Eclipse, Subclipse and Subversion. It may be possible to also use NetBeans.
The scripts require the Windows OS and some technical ability. We have a small group of people here who use the scripts and they are probably the best source of information if a newcomer gets confused has problems in getting it to work.
The devs use a different system to access the SVN. They tend to use a combination of Eclipse, Subclipse and Subversion. It may be possible to also use NetBeans.
-
Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Who is online
Users browsing this forum: Google [Bot] and 99 guests