SVN Build, Do It Yourself
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: SVN Build, Do It Yourself
by 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. 

-
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
by UnderFlow » 10 Jul 2011, 12:05
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).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?
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. :/
Re: SVN Build, Do It Yourself
by Sloth » 10 Jul 2011, 14:38
I agree, we should upload it.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.
Can you commit to the SVN UnderFlow? Should I upload the script to the SVN? Which version should I chose?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. :/
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?
-
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 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.
Re: SVN Build, Do It Yourself
by UnderFlow » 10 Jul 2011, 17:43
1. Nope, I have problems with my gmail account atm, I'll work on it tomorrow.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?
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.
the point is
by Braids » 10 Jul 2011, 17:48
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.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.
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. 

-
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
by Sloth » 10 Jul 2011, 19:00
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.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.
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.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.
-
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 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.
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.
Re: SVN Build, Do It Yourself
by Braids » 10 Jul 2011, 19:55
i'm only advocating for modifiable (text) files for being placed into svn.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.
"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. 

-
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
by Sloth » 10 Jul 2011, 20:21
OK. I've added Underflows version 1.3 of the script to the SVN.
Even if the compiling fails, the updating from svn will work and you will get the newest build-forge.bat.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.
-
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 UnderFlow » 10 Jul 2011, 20:36
That would probably make things complicated, but it is technically easy. I'll put it on my TODO list.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.

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.
Re: SVN Build, Do It Yourself
by 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.
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. 

-
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
by Sloth » 10 Jul 2011, 21:21
That was the error. Good catch Braids.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.
-
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 Braids » 10 Jul 2011, 22:51
yippee! thanks!Sloth wrote:That was the error. Good catch Braids.Braids wrote:i think the {-1.5} should now be a {-1.6}. or {-6}, i'm not sure.



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. 

-
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
by 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
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
Who is online
Users browsing this forum: Baidu [Spider] and 62 guests