Ant

Do we have an Ant task for building the distribution yet? If not, how are you generating your releases Joel?

Thus spake “bsmith”:

I’m doing it with a Makefile. It’s in the root directory of my caching
branch.

vassalengine.svn.sourceforge.net … ision=2748

Warning: You will not get this to work on Windows, unless maybe you
have Cygwin installed, as it contains some shell scripting, some calls
to find and sed, and a perl one-liner. It’s not too unreadable, though,
so it could be useful to see what I’m doing. To make a release build,
I do ‘make clean-release release’.

All of the ant stuff I got from Rodney is under dist/ant/. I’m not using
it myself because I don’t like ant, but I modeled my Makefile after some
of it.

vassalengine.svn.sourceforge.net … /dist/ant/


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Can’t Eclipse just generate the distribution for you? What’s the
advantage of the Makefile?

  • Michael.

On 08/01/2008, Joel Uckelman uckelman@nomic.net wrote:


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

The advantage of the Makefile is that I don’t have to use Eclipse.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Gotcha.

  • M.

P.S.: Eclipse is growing on me. My default choice was vi and prayer.

On 08/01/2008, Joel Uckelman uckelman@nomic.net wrote:


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On 1/8/08, Michael Kiefte mkiefte@dal.ca wrote:

FYI: there is a VI plugin for Eclipse that will give you VI
keybindings in the editor.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

That Eclipse makes me use an editor which isn’t Vim disqualifies it for me.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Tim Byrne”:

Is it just some keybindings, or is it everything? E.g., does it also
give you ed mode?


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On 1/8/08, Joel Uckelman uckelman@nomic.net wrote:

Its just many of the keybindings for navigation, searching, basic
editing (yanks,puts,etc)… Don’t get me wrong. Its no VIM :frowning: But
it did make my time with Eclipse possible. I hadn’t looked at Java
code in at least 6 years, and was trying to navigate all the source
code in VASSAL. I’m still trying to decided if Eclipse made it easier
or not.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Tim Byrne”:

I didn’t really become familiar with the code until after I stopped
trying to use Eclipse, so I can’t really say either. (I was also
learning Java at the time, so way too many conflicting influences
there to sort out.)


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

The debugger in Eclipse is fantastic. I’ve been using that a lot even
to just sort out the effects of what I’m doing and not even
necessarily bug hunting. Decoding the ADC2 file formats was made a
lot easier that way.

If only I could just figure out how SVN works. My impression is that
Eclipse is obscuring a lot of what is going on. I think if I were
using CVS on the command line I could do this, but I’m totally
mystified.

  • M.

On 08/01/2008, Joel Uckelman uckelman@nomic.net wrote:


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thus spake “Michael Kiefte”:

Can you describe for me what you’re trying to do? I user SVN from the
command line, and I could tell you what would work that way. Maybe
that would shed some light on what’s happening.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

On Jan 8, 2008, at 10:37 AM, Michael Kiefte wrote:

Well, you could always just use SVN on the command line. It works
largely similarly to CVS that way.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

I’m not sure if my other more SVN related post got through, but the
problem appears to be that when I attempted a merge from the
repository, it didn’t update everything on my computer and I don’t
know why. I did a comparison of my VASSAL directory and the archive
and found a lot of differences despite the fact that I did a merge.
What I don’t understand is why it updated some files and not others.
There doesn’t appear to be a pattern.

I’m going to attempt another merge. I don’t know what revision number
to merge from though since I just did it. What happens if you put in
the wrong revision number as the start?

  • Michael.

On 08/01/2008, Joel Uckelman uckelman@nomic.net wrote:


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

It would mean the process of building Vassal and making the distribution (the exe file, subfolders, batch files etc.) would practically boil down to:

  1. Checkout Vassal from SVN.
  2. Type “ant”.

Anyone could do it, no need to worry about classpaths or where things are.

Thus spake “Michael Kiefte”:

You’ll end up with a changeset being applied which potentially includes
too much or too little.

I can’t say what your problem is, but this might help you. I found it
useful, at least:

svnbook.red-bean.com/en/1.0/ch04s04.html


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Today is 2011 Oct 24. Subclipse is still obscuring lots of stuff. I use TortoiseSVN (or some SVN command line) to do every “Team” (Eclipse) function.

I agree with Brent. If anyone needs this (build with ant), let me know, and I’ll translate the Makefile into an ant config. I will also hope to have Joel’s feedback on this, so that we can put the ant file into SVN.

There’s also the argument that Vassal 4 will use Cygwin and C++ and Python, so ant is no longer necessary or desirable. Here’s the condition I think should factor into our decision: If Vassal 4 is gonna be up in 1 month, then throw ant out; Else, ant may be needed to get more tinkerers on board.

V4 is not going to happen in 1 month, that much is for sure. :wink:

Anybody into sidebets? My money is on > 2 years for VASSAL 4, though Joel claims < 2 months. :slight_smile:
(The exact claim was “by Christmas”, as I recall, though I do not actually recall a year being specified. Shades of 1914!)