It is currently 17 Sep 2025, 22:21
   
Text Size

SVN Build, Do It Yourself

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: SVN Build, Do It Yourself

Postby Braids » 09 Jul 2011, 20:35

see my post at http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=3721&p=64847#p64850 for the missing file and a plea to put the scripts under svn so we can maintain them properly.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby UnderFlow » 10 Jul 2011, 12:05

timmermac wrote:I'm not sure if Underflow's scripts are working as they should. I work on Windows XP, so robocopy doesn't get recognized as a valid command, and I don't get a run-forge.jar file or a forge.exe file. Is there a working version of a script that will do the trick?
Xp doesn't come with robocopy. You can either manually revert the script to use xcopy or download robocopy (see Hellfish's last posts in this thread).


As for the exception: I am getting similar exceptions, but don't know what causes them. Maybe some library problems again, but it doesn't look like it. :/
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby Sloth » 10 Jul 2011, 14:38

Braids wrote:see my post at http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=3721&p=64847#p64850 for the missing file and a plea to put the scripts under svn so we can maintain them properly.
I agree, we should upload it.

UnderFlow wrote:As for the exception: I am getting similar exceptions, but don't know what causes them. Maybe some library problems again, but it doesn't look like it. :/
Can you commit to the SVN UnderFlow? Should I upload the script to the SVN? Which version should I chose?

EDIT: When I use my version of the script the CardList (and AbilityFactory_Attach) class won't be compiled (problem with yield). Is this the same problem you have?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Build, Do It Yourself

Postby Snacko » 10 Jul 2011, 17:02

I don't see a point in including them into svn as you should use the maven or eclipse if you can already access the repository.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: SVN Build, Do It Yourself

Postby UnderFlow » 10 Jul 2011, 17:43

Sloth wrote:Can you commit to the SVN UnderFlow? Should I upload the script to the SVN? Which version should I chose?

EDIT: When I use my version of the script the CardList (and AbilityFactory_Attach) class won't be compiled (problem with yield). Is this the same problem you have?
1. Nope, I have problems with my gmail account atm, I'll work on it tomorrow.
2. Feel free to add it to the SVN. I'd use the most recent version of the script (1.3) and include all the other files that are needed too.
3. Yes, that sounds like our problem.
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

the point is

Postby Braids » 10 Jul 2011, 17:48

Snacko wrote:I don't see a point in including them into svn as you should use the maven or eclipse if you can already access the repository.
the point of putting them into svn is to make them easier to maintain them and to have a centralized repository for the latest versions.

i like our bleeding edge testers, and i want to be nice to them.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby Sloth » 10 Jul 2011, 19:00

Snacko wrote:I don't see a point in including them into svn as you should use the maven or eclipse if you can already access the repository.
Our beta testers (and lazy people like me) should be able to compile without setting up a workspace and sorting libraries to test the newest version.

UnderFlow wrote:2. Feel free to add it to the SVN. I'd use the most recent version of the script (1.3) and include all the other files that are needed too.
I don't think we can just put all the build files on the SVN. We can have the script on the SVN, but the content of the zip file is mostly licensed stuff.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Build, Do It Yourself

Postby goonjamin » 10 Jul 2011, 19:35

If you keep the script only (build-forge.bat) on the SVN could the run.bat script in the zip file be updated to do the svn update (I can't see this command needing to be updated very often)? Then you could just change the path it uses to run build-forge.bat to run whatever the most recent build script that was just downloaded in the svn update?

That way you can keep the part that needs more updates on the SVN and the rest of the licensed stuff in the zip on the forum here as you have it now.
goonjamin
 
Posts: 133
Joined: 19 Aug 2010, 19:51
Has thanked: 39 times
Been thanked: 5 times

Re: SVN Build, Do It Yourself

Postby Braids » 10 Jul 2011, 19:55

Sloth wrote:I don't think we can just put all the build files on the SVN. We can have the script on the SVN, but the content of the zip file is mostly licensed stuff.
i'm only advocating for modifiable (text) files for being placed into svn.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby Sloth » 10 Jul 2011, 20:21

OK. I've added Underflows version 1.3 of the script to the SVN.

goonjamin wrote:If you keep the script only (build-forge.bat) on the SVN could the run.bat script in the zip file be updated to do the svn update (I can't see this command needing to be updated very often)? Then you could just change the path it uses to run build-forge.bat to run whatever the most recent build script that was just downloaded in the svn update?

That way you can keep the part that needs more updates on the SVN and the rest of the licensed stuff in the zip on the forum here as you have it now.
Even if the compiling fails, the updating from svn will work and you will get the newest build-forge.bat.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Build, Do It Yourself

Postby UnderFlow » 10 Jul 2011, 20:36

goonjamin wrote:If you keep the script only (build-forge.bat) on the SVN could the run.bat script in the zip file be updated to do the svn update (I can't see this command needing to be updated very often)? Then you could just change the path it uses to run build-forge.bat to run whatever the most recent build script that was just downloaded in the svn update?

That way you can keep the part that needs more updates on the SVN and the rest of the licensed stuff in the zip on the forum here as you have it now.
That would probably make things complicated, but it is technically easy. I'll put it on my TODO list. :mrgreen:

And if the content of the zip could cause trouble, we should not put it in the SVN; most people will get their version from the forum anyway.
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby Braids » 10 Jul 2011, 21:11

i already see a bug in the build-forge.bat. in section two, where the line starts with

java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath

i think the {-1.5} should now be a {-1.6}. or {-6}, i'm not sure.
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby Sloth » 10 Jul 2011, 21:21

Braids wrote:i already see a bug in the build-forge.bat. in section two, where the line starts with

java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath

i think the {-1.5} should now be a {-1.6}. or {-6}, i'm not sure.
That was the error. Good catch Braids.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Build, Do It Yourself

Postby Braids » 10 Jul 2011, 22:51

Sloth wrote:
Braids wrote:i think the {-1.5} should now be a {-1.6}. or {-6}, i'm not sure.
That was the error. Good catch Braids.
yippee! thanks! :D \:D/ {UB} i'm not familiar with the jar file it was executing, and i didn't want to have the responsibility of testing it, so i just posted instead.

one question. what is the error?
"That is the dumbest thing I've ever seen." --Rob Cashwalker, regarding Innistrad double-sided cards. One of the first times he and I have ever agreed on something. ;)
User avatar
Braids
Programmer
 
Posts: 556
Joined: 22 Jun 2011, 00:39
Location: Unknown. Hobby: Driving myself and others to constructive madness.
Has thanked: 1 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby UnderFlow » 11 Jul 2011, 00:21

Thanks, Braids. Fixed in script version 1.4.

Also, I added a few lines to run.bat to make it update build-forge.bat, like goonjamin suggested.

Lastly, since there were some people with locking issues, I added the cleanup script to the zip package.

http://dl.dropbox.com/u/5988273/forge-build.zip

http://dl.dropbox.com/u/5988273/build-forge.bat
http://dl.dropbox.com/u/5988273/run.bat
http://dl.dropbox.com/u/5988273/cleanup.bat
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 59 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 59 users online :: 0 registered, 0 hidden and 59 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 59 guests

Login Form