Hi, Just committed a ton of stuff into source control to support the ant build process for v2. It''s currently doing the following: - Running mxn.js and mxn.core.js through JSLint (via Rhino) - Generating documentation using JSDoc-Toolkit - Minifying the lot using YUICompressor - Prepending each file with the license It''s working on my Windows machine but I''ve got a feeling there may be some problems with paths in *nix. If someone running linux and OSX could try building and let me know the outcome would be much appreciated. Next step will be to get the build process automated on a box and run after every commit to source control with a nice report e-mailed back to the list. It would be nice to get the whole lot linting eventually too. Cheers, Derek -- Derek Fowler m. +44 (0) 7966 512 369 e. dezfowler at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20090817/4777a442/attachment.htm>
Superb!! On my Mac: ajturner at river:~/Projects/mapstraction/mxn ] ant Buildfile: build.xml build: [mkdir] Created dir: /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 [echo] --- COPY SOURCES --- [copy] Copying 7 files to /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 [echo] --- LINT --- [java] jslint: No problems found in /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js [java] jslint: No problems found in /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js [echo] --- DOC --- [java] > JsDoc Toolkit main() running at Sun Aug 23 2009 21:56:02 GMT-0400 (EDT). [java] > With options: [java] > c: tools/jsdoc-toolkit/mxn.conf [java] > d: /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/docs [java] > p: true [java] > t: tools/jsdoc-toolkit/templates/jsdoc/ [java] > _: /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js,/Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js [java] > v: true [java] > a: true [java] > Output directory set to ''/Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/docs/''. [java] > Parsing file: /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js [java] > Parsing file: /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js [echo] --- MIN --- [java] The args attribute is deprecated. Please use nested arg elements. [java] The args attribute is deprecated. Please use nested arg elements. [java] The args attribute is deprecated. Please use nested arg elements. [java] The args attribute is deprecated. Please use nested arg elements. [java] The args attribute is deprecated. Please use nested arg elements. [java] The args attribute is deprecated. Please use nested arg elements. [java] The args attribute is deprecated. Please use nested arg elements. [echo] --- COPYRIGHT --- [move] Moving 1 file to /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 [move] Moving 1 file to /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 [move] Moving 1 file to /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 [move] Moving 1 file to /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 [move] Moving 1 file to /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 [move] Moving 1 file to /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 [move] Moving 1 file to /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 BUILD SUCCESSFUL Total time: 24 seconds --- However, in the Build directory I see: ajturner at river:~/Projects/mapstraction/mxn/build ] ls 2.0.0 2.0.0\mxn.cloudmade.core-min.js 2.0.0\mxn.microsoft.core-min.js 2.0.0\mxn-min.js 2.0.0\mxn.core-min.js 2.0.0\mxn.yahoo.core-min.js 2.0.0\mxn.(provider).core-min.js 2.0.0\mxn.google.core-min.js So it''s naming the files "directory\name" so I changed it in the build.xml to have the correct slash instead of backslash. I''m not familiar with Ant at all - so is that right? As for a machine - can probably put this on the Mapstraction host box itself. On Sun, Aug 16, 2009 at 8:46 PM, Derek Fowler<dezfowler at gmail.com> wrote:> Hi, > Just committed a ton of stuff into source control to support the ant build > process for v2. > It''s currently doing the following: > > Running mxn.js and mxn.core.js through JSLint (via Rhino) > Generating documentation using JSDoc-Toolkit > Minifying the lot using YUICompressor > Prepending each file with the license > > It''s working on my Windows machine but I''ve got a feeling there may be some > problems with paths in *nix. If someone running linux and OSX could try > building and let me know the outcome would be much appreciated. > Next step will be to get the build process automated on a box and run after > every commit to source control with a nice report e-mailed back to the > list.?It would be nice to get the whole lot linting eventually too. > Cheers, > Derek > -- > Derek Fowler > m. +44 (0) 7966 512 369 > e. dezfowler at gmail.com > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-- Andrew Turner mobile: 248.982.3609 andrew at fortiusone.com http://highearthorbit.com http://geocommons.com Helping build the Geospatial Web Introduction to Neogeography - http://oreilly.com/catalog/neogeography
Hi, I can''t build it, even with last svn ( r23 ) I get : ant Buildfile: build.xml build: [mkdir] Created dir: /home/gramps/mapstraction-read-only/build/2.0.1 [echo] --- COPY SOURCES --- [copy] Copying 7 files to /home/gramps/mapstraction-read-only/build/2.0.1 [echo] --- LINT --- [java] jslint: No problems found in /home/gramps/mapstraction-read-only/build/2.0.1/mxn.js [java] jslint: No problems found in /home/gramps/mapstraction-read-only/build/2.0.1/mxn.core.js [echo] --- DOC --- [java] > JsDoc Toolkit main() running at Mon Aug 24 2009 08:05:08 GMT+0200 (CEST). [java] > With options: [java] > c: tools/jsdoc-toolkit/mxn.conf [java] > d: /home/gramps/mapstraction-read-only/build/2.0.1/docs [java] > p: true [java] > t: tools/jsdoc-toolkit/templates/jsdoc/ [java] > _: /home/gramps/mapstraction-read-only/build/2.0.1/mxn.js,/home/gramps/mapstraction-read-only/build/2.0.1/mxn.core.js [java] > v: true [java] > a: true [java] > Output directory set to ''/home/gramps/mapstraction-read-only/build/2.0.1/docs/''. [java] > Parsing file: /home/gramps/mapstraction-read-only/build/2.0.1/mxn.js [java] > Parsing file: /home/gramps/mapstraction-read-only/build/2.0.1/mxn.core.js [echo] --- MIN --- BUILD FAILED /home/gramps/mapstraction-read-only/build.xml:72: The following error occurred while executing this line: /home/gramps/mapstraction-read-only/build.xml:77: No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp Total time: 12 seconds java -version gives : java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode) Linux : ubuntu 8.10 ( intrepid ) Do I need to install something missing ? Derek Fowler wrote:> Hi, > > Just committed a ton of stuff into source control to support the ant > build process for v2. > > It''s currently doing the following: > > * Running mxn.js and mxn.core.js through JSLint (via Rhino) > * Generating documentation using JSDoc-Toolkit > * Minifying the lot using YUICompressor > * Prepending each file with the license > > It''s working on my Windows machine but I''ve got a feeling there may be > some problems with paths in *nix. If someone running linux and OSX could > try building and let me know the outcome would be much appreciated. > > Next step will be to get the build process automated on a box and run > after every commit to source control with a nice report e-mailed back to > the list. It would be nice to get the whole lot linting eventually too. > > Cheers, > Derek > > -- > Derek Fowler > m. +44 (0) 7966 512 369 > e. dezfowler at gmail.com <mailto:dezfowler at gmail.com>
Worked nicely for my Mac, too. I didn''t have the backslash issues, though I assume you must have fixed that in the interim? If anyone else wants to try it out, for me it was as simple as: 1) Check out the latest from v2 repository: http://code.google.com/p/mapstraction/source/checkout 2) Run "ant" with no parameters from the directory where you stored the repository (should contain build.xml) If you don''t have ant (a Java make tool), see here: http://ant.apache.org/ Mine only took 23 seconds. I think you should upgrade, Andrew. --Ad --- Adam DuVander I like maps: http://mapscripting.com I like simple: http://adamduvander.com On Aug 23, 2009, at 7:00 PM, Andrew Turner wrote:> Superb!! > > On my Mac: > > ajturner at river:~/Projects/mapstraction/mxn > ] ant > Buildfile: build.xml > > build: > [mkdir] Created dir: /Users/ajturner/Projects/mapstraction/mxn/ > build/2.0.0 > [echo] --- COPY SOURCES --- > [copy] Copying 7 files to > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 > [echo] --- LINT --- > [java] jslint: No problems found in > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js > [java] jslint: No problems found in > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js > [echo] --- DOC --- > [java] > JsDoc Toolkit main() running at Sun Aug 23 2009 > 21:56:02 GMT-0400 (EDT). > [java] > With options: > [java] > c: tools/jsdoc-toolkit/mxn.conf > [java] > d: /Users/ajturner/Projects/mapstraction/mxn/build/ > 2.0.0/docs > [java] > p: true > [java] > t: tools/jsdoc-toolkit/templates/jsdoc/ > [java] > _: > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js,/Users/ > ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js > [java] > v: true > [java] > a: true > [java] > Output directory set to > ''/Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/docs/''. > [java] > Parsing file: > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js > [java] > Parsing file: > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js > [echo] --- MIN --- > [java] The args attribute is deprecated. Please use nested arg > elements. > [java] The args attribute is deprecated. Please use nested arg > elements. > [java] The args attribute is deprecated. Please use nested arg > elements. > [java] The args attribute is deprecated. Please use nested arg > elements. > [java] The args attribute is deprecated. Please use nested arg > elements. > [java] The args attribute is deprecated. Please use nested arg > elements. > [java] The args attribute is deprecated. Please use nested arg > elements. > [echo] --- COPYRIGHT --- > [move] Moving 1 file to > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 > [move] Moving 1 file to > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 > [move] Moving 1 file to > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 > [move] Moving 1 file to > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 > [move] Moving 1 file to > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 > [move] Moving 1 file to > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 > [move] Moving 1 file to > /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 > > BUILD SUCCESSFUL > Total time: 24 seconds > > --- > > However, in the Build directory I see: > > ajturner at river:~/Projects/mapstraction/mxn/build > ] ls > 2.0.0 2.0.0\mxn.cloudmade.core-min.js 2.0.0\mxn.microsoft.core- > min.js > 2.0.0\mxn-min.js 2.0.0\mxn.core-min.js 2.0.0\mxn.yahoo.core-min.js > 2.0.0\mxn.(provider).core-min.js 2.0.0\mxn.google.core-min.js > > So it''s naming the files "directory\name" so I changed it in the > build.xml to have the correct slash instead of backslash. I''m not > familiar with Ant at all - so is that right? > > As for a machine - can probably put this on the Mapstraction host > box itself. > > On Sun, Aug 16, 2009 at 8:46 PM, Derek Fowler<dezfowler at gmail.com> > wrote: >> Hi, >> Just committed a ton of stuff into source control to support the >> ant build >> process for v2. >> It''s currently doing the following: >> >> Running mxn.js and mxn.core.js through JSLint (via Rhino) >> Generating documentation using JSDoc-Toolkit >> Minifying the lot using YUICompressor >> Prepending each file with the license >> >> It''s working on my Windows machine but I''ve got a feeling there may >> be some >> problems with paths in *nix. If someone running linux and OSX could >> try >> building and let me know the outcome would be much appreciated. >> Next step will be to get the build process automated on a box and >> run after >> every commit to source control with a nice report e-mailed back to >> the >> list. It would be nice to get the whole lot linting eventually too. >> Cheers, >> Derek >> -- >> Derek Fowler >> m. +44 (0) 7966 512 369 >> e. dezfowler at gmail.com >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> >> > > > > -- > Andrew Turner > mobile: 248.982.3609 > andrew at fortiusone.com > http://highearthorbit.com > > http://geocommons.com Helping build the Geospatial Web > Introduction to Neogeography - http://oreilly.com/catalog/neogeography > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
On Tue, Aug 25, 2009 at 1:57 AM, Adam DuVander<mapstraction at duvander.com> wrote:> Worked nicely for my Mac, too. I didn''t have the backslash issues, though I > assume you must have fixed that in the interim?Yes, v23 has it fixed (amongst other additions)> If anyone else wants to try it out, for me it was as simple as: > 1) Check out the latest from v2 repository: > http://code.google.com/p/mapstraction/source/checkout > 2) Run "ant" with no parameters from the directory where you stored the > repository (should contain build.xml) > > If you don''t have ant (a Java make tool), see here: > http://ant.apache.org/ > > Mine only took 23 seconds. I think you should upgrade, Andrew.Snow Leopard does come out on Friday - so my 3-year-old MBP must be feeling it''s age :)> --Ad > --- > Adam DuVander > I like maps: http://mapscripting.com > I like simple: http://adamduvander.com > > On Aug 23, 2009, at 7:00 PM, Andrew Turner wrote: > >> Superb!! >> >> On my Mac: >> >> ajturner at river:~/Projects/mapstraction/mxn >> ] ant >> Buildfile: build.xml >> >> build: >> ? [mkdir] Created dir: >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> ? ?[echo] --- COPY SOURCES --- >> ? ?[copy] Copying 7 files to >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> ? ?[echo] --- LINT --- >> ? ?[java] jslint: No problems found in >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js >> ? ?[java] jslint: No problems found in >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js >> ? ?[echo] --- DOC --- >> ? ?[java] ?> JsDoc Toolkit main() running at Sun Aug 23 2009 >> 21:56:02 GMT-0400 (EDT). >> ? ?[java] ?> With options: >> ? ?[java] ?> ? ? c: tools/jsdoc-toolkit/mxn.conf >> ? ?[java] ?> ? ? d: >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/docs >> ? ?[java] ?> ? ? p: true >> ? ?[java] ?> ? ? t: tools/jsdoc-toolkit/templates/jsdoc/ >> ? ?[java] ?> ? ? _: >> >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js,/Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js >> ? ?[java] ?> ? ? v: true >> ? ?[java] ?> ? ? a: true >> ? ?[java] ?> Output directory set to >> ''/Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/docs/''. >> ? ?[java] ?> Parsing file: >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.js >> ? ?[java] ?> Parsing file: >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0/mxn.core.js >> ? ?[echo] --- MIN --- >> ? ?[java] The args attribute is deprecated. Please use nested arg >> elements. >> ? ?[java] The args attribute is deprecated. Please use nested arg >> elements. >> ? ?[java] The args attribute is deprecated. Please use nested arg >> elements. >> ? ?[java] The args attribute is deprecated. Please use nested arg >> elements. >> ? ?[java] The args attribute is deprecated. Please use nested arg >> elements. >> ? ?[java] The args attribute is deprecated. Please use nested arg >> elements. >> ? ?[java] The args attribute is deprecated. Please use nested arg >> elements. >> ? ?[echo] --- COPYRIGHT --- >> ? ?[move] Moving 1 file to >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> ? ?[move] Moving 1 file to >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> ? ?[move] Moving 1 file to >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> ? ?[move] Moving 1 file to >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> ? ?[move] Moving 1 file to >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> ? ?[move] Moving 1 file to >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> ? ?[move] Moving 1 file to >> /Users/ajturner/Projects/mapstraction/mxn/build/2.0.0 >> >> BUILD SUCCESSFUL >> Total time: 24 seconds >> >> --- >> >> However, in the Build directory I see: >> >> ajturner at river:~/Projects/mapstraction/mxn/build >> ] ls >> 2.0.0 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 2.0.0\mxn.cloudmade.core-min.js >> ? ? ? 2.0.0\mxn.microsoft.core-min.js >> 2.0.0\mxn-min.js ? ? ? ? ? ? ? ? ? ? ? ?2.0.0\mxn.core-min.js >> ? ? ? 2.0.0\mxn.yahoo.core-min.js >> 2.0.0\mxn.(provider).core-min.js ? ? ? ?2.0.0\mxn.google.core-min.js >> >> So it''s naming the files "directory\name" so I changed it in the >> build.xml to have the correct slash instead of backslash. I''m not >> familiar with Ant at all - so is that right? >> >> As for a machine - can probably put this on the Mapstraction host box >> itself. >> >> On Sun, Aug 16, 2009 at 8:46 PM, Derek Fowler<dezfowler at gmail.com> wrote: >>> >>> Hi, >>> Just committed a ton of stuff into source control to support the ant >>> build >>> process for v2. >>> It''s currently doing the following: >>> >>> Running mxn.js and mxn.core.js through JSLint (via Rhino) >>> Generating documentation using JSDoc-Toolkit >>> Minifying the lot using YUICompressor >>> Prepending each file with the license >>> >>> It''s working on my Windows machine but I''ve got a feeling there may be >>> some >>> problems with paths in *nix. If someone running linux and OSX could try >>> building and let me know the outcome would be much appreciated. >>> Next step will be to get the build process automated on a box and run >>> after >>> every commit to source control with a nice report e-mailed back to the >>> list. It would be nice to get the whole lot linting eventually too. >>> Cheers, >>> Derek >>> -- >>> Derek Fowler >>> m. +44 (0) 7966 512 369 >>> e. dezfowler at gmail.com >>> >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >>> >>> >> >> >> >> -- >> Andrew Turner >> mobile: 248.982.3609 >> andrew at fortiusone.com >> http://highearthorbit.com >> >> http://geocommons.com ? ? ? ? ? Helping build the Geospatial Web >> Introduction to Neogeography - http://oreilly.com/catalog/neogeography >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com > >-- Andrew Turner mobile: 248.982.3609 andrew at fortiusone.com http://highearthorbit.com http://geocommons.com Helping build the Geospatial Web Introduction to Neogeography - http://oreilly.com/catalog/neogeography