Discussion:
[Rabbit-dev] Ant build script for RabbIT 4.2
Mindaugas Žakšauskas
2009-10-24 21:50:02 UTC
Permalink
Hi,

I needed debugging symbols in RabbIT and didn't feel like installing
make (my home machine is now only running XP) so I wrote an Ant
script.

As my make skills are rather limited, I am not sure if the result is
100% compatible with the original, however it works well enough for
me. Also, I haven't tested it against 4.3, but if there are no big
changes, this should just work. The only clear difference is that
debugging symbols are generated, but this is easy to switch off, I
have extracted a flag.

The only missing feature at the moment is task to generate source
deliverables (e.g. rabbit4.2-src.tar.gz).

The script can be found at http://cl1p.net/rabbit/ and has to be
placed in root folder (next to LICENSE, README, etc.).
Rob, feel free to add this to upstream if you wish so.

m.
Robert Olofsson
2009-10-25 08:54:12 UTC
Permalink
On Sat, 24 Oct 2009 22:50:02 +0100
Post by Mindaugas Žakšauskas
I needed debugging symbols in RabbIT and didn't feel like installing
make (my home machine is now only running XP) so I wrote an Ant
script.
Ok, I can of course add that build.xml file, I am just a bit worried about
the version flags in it, I will probably not remember to update them.
Is there some way to automate the version extraction?

/robo
Mindaugas Žakšauskas
2009-10-25 19:30:58 UTC
Permalink
Hi,

I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
If not buried deep down, it should be rather straightforward to get
this into Ant build file, too.
Just let me know where so I can fix it.

m.

On Sun, Oct 25, 2009 at 8:54 AM, Robert Olofsson
Post by Robert Olofsson
Ok, I can of course add that build.xml file, I am just a bit worried about
the version flags in it, I will probably not remember to update them.
Is there some way to automate the version extraction?
/robo
Robert Olofsson
2009-10-25 19:57:13 UTC
Permalink
On Sun, 25 Oct 2009 19:30:58 +0000
Post by Mindaugas Žakšauskas
I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
For my r4dist script (not part of the source) it checks the VERSION
constant in HttpProxy (but may also append any "-preX" that I supply).

Getting the version from HttpProxy is the correct thing I think.

/robo
Mindaugas Žakšauskas
2009-10-26 23:08:10 UTC
Permalink
My evening regex exercise:

Input string:
public static final String VERSION = "RabbIT proxy version 4.2";

Regex to get major/minor version ("4.2"): "[^ ]*$"
Regex to get minor version ("2"): "[^\\.]*$"
Regex to get major version ("4"): "\\d(?=\\.)"

This then needs to be put into a class, which Ant executes and sets
relevant variables.
All doable but looks like shooting a sparrow with a cannon (and what
if VERSION format will change?). Overengineering sucks.

It's probably easier to keep this out of main trunk (contrib, anyone?)
and put a big warning for users so they don't forget to change the
numbers.

m.

On Sun, Oct 25, 2009 at 7:57 PM, Robert Olofsson
Post by Robert Olofsson
On Sun, 25 Oct 2009 19:30:58 +0000
Post by Mindaugas Žakšauskas
I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
For my r4dist script (not part of the source) it checks the VERSION
constant in HttpProxy (but may also append any "-preX" that I supply).
Getting the version from HttpProxy is the correct thing I think.
/robo
_______________________________________________
Rabbit-dev mailing list
Rabbit-dev at khelekore.org
http://khelekore.org/cgi-bin/mailman/listinfo/rabbit-dev
Mindaugas Žakšauskas
2009-10-26 23:08:10 UTC
Permalink
My evening regex exercise:

Input string:
public static final String VERSION = "RabbIT proxy version 4.2";

Regex to get major/minor version ("4.2"): "[^ ]*$"
Regex to get minor version ("2"): "[^\\.]*$"
Regex to get major version ("4"): "\\d(?=\\.)"

This then needs to be put into a class, which Ant executes and sets
relevant variables.
All doable but looks like shooting a sparrow with a cannon (and what
if VERSION format will change?). Overengineering sucks.

It's probably easier to keep this out of main trunk (contrib, anyone?)
and put a big warning for users so they don't forget to change the
numbers.

m.

On Sun, Oct 25, 2009 at 7:57 PM, Robert Olofsson
Post by Robert Olofsson
On Sun, 25 Oct 2009 19:30:58 +0000
Post by Mindaugas Žakšauskas
I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
For my r4dist script (not part of the source) it checks the VERSION
constant in HttpProxy (but may also append any "-preX" that I supply).
Getting the version from HttpProxy is the correct thing I think.
/robo
_______________________________________________
Rabbit-dev mailing list
Rabbit-dev at khelekore.org
http://khelekore.org/cgi-bin/mailman/listinfo/rabbit-dev
Mindaugas Žakšauskas
2009-10-26 23:08:10 UTC
Permalink
My evening regex exercise:

Input string:
public static final String VERSION = "RabbIT proxy version 4.2";

Regex to get major/minor version ("4.2"): "[^ ]*$"
Regex to get minor version ("2"): "[^\\.]*$"
Regex to get major version ("4"): "\\d(?=\\.)"

This then needs to be put into a class, which Ant executes and sets
relevant variables.
All doable but looks like shooting a sparrow with a cannon (and what
if VERSION format will change?). Overengineering sucks.

It's probably easier to keep this out of main trunk (contrib, anyone?)
and put a big warning for users so they don't forget to change the
numbers.

m.

On Sun, Oct 25, 2009 at 7:57 PM, Robert Olofsson
Post by Robert Olofsson
On Sun, 25 Oct 2009 19:30:58 +0000
Post by Mindaugas Žakšauskas
I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
For my r4dist script (not part of the source) it checks the VERSION
constant in HttpProxy (but may also append any "-preX" that I supply).
Getting the version from HttpProxy is the correct thing I think.
/robo
_______________________________________________
Rabbit-dev mailing list
Rabbit-dev at khelekore.org
http://khelekore.org/cgi-bin/mailman/listinfo/rabbit-dev
Robert Olofsson
2009-10-25 19:57:13 UTC
Permalink
On Sun, 25 Oct 2009 19:30:58 +0000
Post by Mindaugas Žakšauskas
I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
For my r4dist script (not part of the source) it checks the VERSION
constant in HttpProxy (but may also append any "-preX" that I supply).

Getting the version from HttpProxy is the correct thing I think.

/robo
Robert Olofsson
2009-10-25 19:57:13 UTC
Permalink
On Sun, 25 Oct 2009 19:30:58 +0000
Post by Mindaugas Žakšauskas
I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
For my r4dist script (not part of the source) it checks the VERSION
constant in HttpProxy (but may also append any "-preX" that I supply).

Getting the version from HttpProxy is the correct thing I think.

/robo
Mindaugas Žakšauskas
2009-10-25 19:30:58 UTC
Permalink
Hi,

I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
If not buried deep down, it should be rather straightforward to get
this into Ant build file, too.
Just let me know where so I can fix it.

m.

On Sun, Oct 25, 2009 at 8:54 AM, Robert Olofsson
Post by Robert Olofsson
Ok, I can of course add that build.xml file, I am just a bit worried about
the version flags in it, I will probably not remember to update them.
Is there some way to automate the version extraction?
/robo
Mindaugas Žakšauskas
2009-10-25 19:30:58 UTC
Permalink
Hi,

I have only placed version numbers in the XML only because didn't have
an idea what the primary source is.
If not buried deep down, it should be rather straightforward to get
this into Ant build file, too.
Just let me know where so I can fix it.

m.

On Sun, Oct 25, 2009 at 8:54 AM, Robert Olofsson
Post by Robert Olofsson
Ok, I can of course add that build.xml file, I am just a bit worried about
the version flags in it, I will probably not remember to update them.
Is there some way to automate the version extraction?
/robo
Mindaugas Žakšauskas
2009-10-24 21:50:02 UTC
Permalink
Hi,

I needed debugging symbols in RabbIT and didn't feel like installing
make (my home machine is now only running XP) so I wrote an Ant
script.

As my make skills are rather limited, I am not sure if the result is
100% compatible with the original, however it works well enough for
me. Also, I haven't tested it against 4.3, but if there are no big
changes, this should just work. The only clear difference is that
debugging symbols are generated, but this is easy to switch off, I
have extracted a flag.

The only missing feature at the moment is task to generate source
deliverables (e.g. rabbit4.2-src.tar.gz).

The script can be found at http://cl1p.net/rabbit/ and has to be
placed in root folder (next to LICENSE, README, etc.).
Rob, feel free to add this to upstream if you wish so.

m.
Robert Olofsson
2009-10-25 08:54:12 UTC
Permalink
On Sat, 24 Oct 2009 22:50:02 +0100
Post by Mindaugas Žakšauskas
I needed debugging symbols in RabbIT and didn't feel like installing
make (my home machine is now only running XP) so I wrote an Ant
script.
Ok, I can of course add that build.xml file, I am just a bit worried about
the version flags in it, I will probably not remember to update them.
Is there some way to automate the version extraction?

/robo
Mindaugas Žakšauskas
2009-10-24 21:50:02 UTC
Permalink
Hi,

I needed debugging symbols in RabbIT and didn't feel like installing
make (my home machine is now only running XP) so I wrote an Ant
script.

As my make skills are rather limited, I am not sure if the result is
100% compatible with the original, however it works well enough for
me. Also, I haven't tested it against 4.3, but if there are no big
changes, this should just work. The only clear difference is that
debugging symbols are generated, but this is easy to switch off, I
have extracted a flag.

The only missing feature at the moment is task to generate source
deliverables (e.g. rabbit4.2-src.tar.gz).

The script can be found at http://cl1p.net/rabbit/ and has to be
placed in root folder (next to LICENSE, README, etc.).
Rob, feel free to add this to upstream if you wish so.

m.
Robert Olofsson
2009-10-25 08:54:12 UTC
Permalink
On Sat, 24 Oct 2009 22:50:02 +0100
Post by Mindaugas Žakšauskas
I needed debugging symbols in RabbIT and didn't feel like installing
make (my home machine is now only running XP) so I wrote an Ant
script.
Ok, I can of course add that build.xml file, I am just a bit worried about
the version flags in it, I will probably not remember to update them.
Is there some way to automate the version extraction?

/robo
Loading...