[mapguide-internals] Version setting script - What about ANT

Jackie Ng jumpinjackie at gmail.com
Wed Apr 8 03:49:21 EDT 2009


I agree that batch files are quite limiting, I didn't write them as the "be all, end all" build system for MapGuide. It was just something to improve the build experience on windows.

Speaking as an ant non-expert, it does sound like ant would be the way to go, my questions on that are:
1) Can Ant integrate with msbuild and other build systems?
2) Can it integrate with helio's cmake work on linux?

If yes on both, then I don't see why we can't use ant as the "one build system to rule them all". It's already required for building Fusion anyway, so there's no additional (software) overhead.

- Jackie


I always thought java is like C++ without the need for a preprocessor 
;-)  so I though its easy to read when you know C++.
But I have a very multi language background so I cant really judge this.

I encountered standalone java files  in a previous job and was surprised 
how simple it is to just use it for simple tasks like this.
And a lot less cryptic than any other script language I know....

But my main point was to leverage the power of ant for such a task....
so the script (at your portable language choice) does the replacement on 
a single file only...
Ant then parses the source tree and applies the little script everywhere....
I think this is a good investment into infrastructure.

Once you have used ant for building software the use of batch files 
feels very limiting.
and ant is multiplatform
I think the multi-platform issue will become more of an issue over time.
But thats a call for a PSC decision and introducing ant for parts of the 
build seems like a bigger project.

I am willing to make a proposal when you tell me what needs to be done....
The build process on the server still needs bit more work so its a good 
time to play around a bit.

Cheers,
UV


Jason Birch wrote:
> Yea, I started out wanting to use batch (was focussing on Windows build) and VBS was my (il)logical next step.
>
> Java is a non-starter for me (proficiency), and may make it harder to find people who can maintain it... in our current community anyway.  I'd be willing to re-write in PHP at some point, which is at least supported on all platforms, and is one of MapGuide's three supported API languages.
>
> Jason
>
> ________________________________________
> From: UV
> Sent: Tuesday, April 07, 2009 6:45 PM
> To: MapGuide Internals Mail List
> Subject: Re: [mapguide-internals] Version setting script
>
> Good idea. Properly tagged source file are very helpful!
>
> just one thought....
> do we need to introduce yet another scripting language into the system?
> This is supposed to be multi-platform I thought._______________________________________________
> mapguide-internals mailing list
> mapguide-internals at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-internals
>
>   

_______________________________________________
mapguide-internals mailing list
mapguide-internals at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-internals



-- 
View this message in context: http://n2.nabble.com/Version-setting-script-tp2600676p2603703.html
Sent from the MapGuide Internals mailing list archive at Nabble.com.



More information about the mapguide-internals mailing list