SVN Build, Do It Yourself
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: SVN Build, Do It Yourself
by Snacko » 12 Jul 2010, 09:51
I'm updating the batch file as some libraries changed so you need to update. I'll upload a new full package with this change too.
update-and-build.bat
update-and-build.bat
- Code: Select all
build\svn.exe update forge-svn
java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath forge-svn\src;forge-svn\res\lib\google-collections-1.0.jar;forge-svn\res\lib\java-image-scaling-0.8.4.jar;forge-svn\res\lib\miglayout-3.7.3.1-swing.jar;forge-svn\res\lib\jl1.0.1.jar;forge-svn\res\lib\napkinlaf-1.2.jar;forge-svn\res\lib\nimrodlf.jar;forge-svn\res\lib\substance.jar -g:none -d output
mkdir output\META-INF
copy forge-svn\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
xcopy forge-svn\res\* forge\res\ /Y /S
copy forge-svn\forge.properties forge\ /Y
move forge.jar forge\
copy build\forge.exe forge\
del forge.zip
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
Re: SVN Build, Do It Yourself
by lazylockie » 13 Jul 2010, 22:47
Hi,
I'd like to know if it's possible to compile the code with Netbeans.
Thank you,
Henrique
Edit: actually I could build (using your 2.3 bat files) without Netbeans or Eclipse.
I'd like to know if it's possible to compile the code with Netbeans.
Thank you,
Henrique
Edit: actually I could build (using your 2.3 bat files) without Netbeans or Eclipse.
Last edited by lazylockie on 14 Jul 2010, 19:54, edited 1 time in total.
- lazylockie
- Posts: 508
- Joined: 13 Jul 2010, 22:44
- Has thanked: 74 times
- Been thanked: 15 times
Re: SVN Build, Do It Yourself
by Snacko » 14 Jul 2010, 11:26
Sure it is, however netbeans doesn't have a java compiler so you need jdk installed too.
Re: SVN Build, Do It Yourself
by SoulStorm » 14 Jul 2010, 17:03
Yeah. I got exactly the same error.Corwin72 wrote:When I try to run the new forge after updating I get the error.
Could not find the main class:forge.Gui_NewGame. Program will exit.
Re: SVN Build, Do It Yourself
by Corwin72 » 14 Jul 2010, 19:48
Try running this:
Edit: Arggg. The board attachment quota has been reached. I have another thread that has the updated file.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2884
It is Snacko's tool updated with the fix earlier on the page.
Edit: Arggg. The board attachment quota has been reached. I have another thread that has the updated file.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2884
It is Snacko's tool updated with the fix earlier on the page.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Build, Do It Yourself
by Chris H. » 14 Jul 2010, 20:40
`Corwin72 wrote:Try running this:
Edit: Arggg. The board attachment quota has been reached. I have another thread that has the updated file.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2884
It is Snacko's tool updated with the fix earlier on the page.
I copied the url address of the file archive and will paste that in below:
-
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
Re: SVN Build, Do It Yourself
by SoulStorm » 14 Jul 2010, 21:27
Nope, I still have the exact same problem for whatever reason. I'm running vista 64.Corwin72 wrote:Try running this:
Edit: Arggg. The board attachment quota has been reached. I have another thread that has the updated file.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2884
It is Snacko's tool updated with the fix earlier on the page.
Re: SVN Build, Do It Yourself
by lovelydwarf » 15 Jul 2010, 04:00
Has anyone converted this tool into a Mac version? I'm afraid I'm a bit too ignorant to do it. Thanks.
- lovelydwarf
- Posts: 17
- Joined: 05 May 2010, 03:15
- Has thanked: 0 time
- Been thanked: 0 time
Re: SVN Build, Do It Yourself
by Chris H. » 15 Jul 2010, 09:54
`lovelydwarf wrote:Has anyone converted this tool into a Mac version? I'm afraid I'm a bit too ignorant to do it. Thanks.
Not yet. I have a Mac but I do not have any experience in creating and running scripts in the Terminal app. I use the Mac versions of Eclipse, Subclipse and Subversion.

-
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
Re: SVN Build, Do It Yourself
by Corwin72 » 15 Jul 2010, 14:25
I have tested the backup creator on Vista 32 and XP and had no issues. Perhaps it is an issue with your 64 bit OS.SoulStorm wrote:
Nope, I still have the exact same problem for whatever reason. I'm running vista 64.
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Re: SVN Build, Do It Yourself
by Snacko » 22 Jul 2010, 12:56
- Code: Select all
build\svn.exe update forge-svn
java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath forge-svn\src;forge-svn\res\lib\google-collections-1.0.jar;forge-svn\res\lib\java-image-scaling-0.8.4.jar;forge-svn\res\lib\miglayout-3.7.3.1-swing.jar;forge-svn\res\lib\jl1.0.1.jar;forge-svn\res\lib\napkinlaf-1.2.jar;forge-svn\res\lib\nimrodlf.jar;forge-svn\res\lib\substance.jar -g:none -d output
mkdir output\META-INF
copy forge-svn\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
xcopy forge-svn\res\* forge\res\ /Y /E
xcopy custom\* forge\ /Y /E
copy forge-svn\forge.properties forge\ /Y
copy forge-svn\forge.preferences forge\ /Y
move forge.jar forge\
copy build\forge.exe forge\
del forge.zip
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
Ex. custom\decks\YourDeck.txt
When I update the full package I'll update eclipse compiler to new release.
Re: SVN Build, Do It Yourself
by 1diehard1 » 02 Aug 2010, 02:32
I'd really like to compile it, but I can't quite get it working. My system is ubuntu linux 10.04 - I have eclipse installed and everything. Here's what I've got:
- Code: Select all
java -jar build\ecj-3.5.2.jar forge-card-game\src -1.5 -classpath forge-card-game\src forge-card-game\res\lib\google-collections-1.0.jar forge-card-game\res\lib\java-image-scaling-0.8.4.jar forge-card-game\res\lib\miglayout-3.7.3.1-swing.jar forge-card-game\res\lib\jl1.0.1.jar forge-card-game\res\lib\napkinlaf-1.2.jar forge-card-game\res\lib\nimrodlf.jar forge-card-game\res\lib\substance.jar -g:none -d output
mkdir output\META-INF
cp forge-card-game\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
cp -r forge-card-game\res\* forge\res\ /Y /E
cp -r custom\* forge\ /Y /E
cp forge-card-game\forge.properties forge\ /Y
cp forge-card-game\forge.preferences forge\ /Y
mv forge.jar forge\
cp build\forge.exe forge\
rm forge.zip
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
- 1diehard1
- Posts: 4
- Joined: 31 Mar 2010, 00:52
- Has thanked: 0 time
- Been thanked: 0 time
Re: SVN Build, Do It Yourself
by Snacko » 02 Aug 2010, 15:50
The script is windows only, so you still would need to change ..\build\7z.exe to 7z and have 7zip installed. In linux there are no /x switched so you need to change them too in (here you can remove those /Y and /Y /E). Plus rmdir forge will fail as it can only delete empty directories you need rm -rf forge.
However if you already got eclipse you can use that to build the jar via jardesc that included in svn.
However if you already got eclipse you can use that to build the jar via jardesc that included in svn.
Re: SVN Build, Do It Yourself
by Corwin72 » 14 Sep 2010, 03:16
Snacko,
I think that r2017 has broken the builder again. Is there any way that you could post an updated "update-and-build.bat"?
I think that r2017 has broken the builder again. Is there any way that you could post an updated "update-and-build.bat"?
-
Corwin72 - Posts: 793
- Joined: 15 Sep 2009, 13:26
- Location: Grayson, Ga
- Has thanked: 25 times
- Been thanked: 9 times
Who is online
Users browsing this forum: No registered users and 56 guests