I fixed a regression in the <resgen> task very recently.  I'm not sure if
the fix was included in the nightly of 3/20, if not wait for the next
nightly build (I'm kinda busy right now, so in that case you'll have to wait
until tomorrow or so).

Gert

----- Original Message ----- 
From: "Baldree Matt" <[EMAIL PROTECTED]>
To: "'Gert Driesen'" <[EMAIL PROTECTED]>; "Peter McEvoy"
<[EMAIL PROTECTED]>; "Tom Lathrop" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 22, 2004 4:52 PM
Subject: RE: [Nant-users] Problem with resgen task in nightly build


> There does seem to be a problem with 3/17 nightly build for <resgen> where
> before we could do this...
>
> <do>
> <echo message="Found resource file: ${resource.file}" />
> <resgen input="${resource.file}" />
> </do>
>
> We now have to do this...
>
> <do>
> <echo message="Found resource file: ${resource.file}" />
>
> <regex pattern="(?'resourceName'.*).(txt|resx)$"
> input="${resource.file}" />
> <resgen output="${resourceName}.resources" input="${resource.file}"
> />
> </do>
>
> In the new format, we explicitly indicate the output location and name.
I'm
> not sure when the change happended from 0.84. I haven't looked into the
> source code to see what changed and when.
>
> -----Original Message-----
> From: Gert Driesen [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 22, 2004 09:26 AM
> To: Peter McEvoy; Tom Lathrop
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Nant-users] Problem with resgen task in nightly build
>
>
> Peter,
>
> Are you sure that this works in the 02/26 nightly ?  I'm pretty sure this
> never worked, I don't think we implemented a hack to skip empty resx
files.
>
> Gert
>
> ----- Original Message -----
> From: "Peter McEvoy" <[EMAIL PROTECTED]>
> To: "Gert Driesen" <[EMAIL PROTECTED]>; "Tom Lathrop"
> <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, March 22, 2004 4:20 PM
> Subject: RE: [Nant-users] Problem with resgen task in nightly build
>
>
> > I've seen another problem with resgen:  empty ResX files (which VS will
> > generate from time to time) with the latest nightly, generate an Xml
> > exception:
> >
> >  error: Invalid ResX input.
> >  error: Specific exception: XmlException  Message: Invalid ResX
> input. --->
> > XmlException: The root element is missing.
> >  2 error(s).
> >
> > This does not happen with the nightly from 02/26.
> >
> > Pete
> >
> > > -----Original Message-----
> > > From: Gert Driesen [mailto:[EMAIL PROTECTED]
> > > Sent: 19 March 2004 22:47
> > > To: Tom Lathrop
> > > Cc: [EMAIL PROTECTED]
> > > Subject: Re: [Nant-users] Problem with resgen task in nightly build
> > >
> > >
> > > Tom,
> > >
> > > This looks like a regression to me.
> > >
> > > Can you package up a zip file containing the minimum set of
> > > files necessary to reproduce this issue ?
> > >
> > > Thanks,
> > >
> > > Gert
> > >
> > > On Fri, 2004-03-19 at 22:52, Tom Lathrop wrote:
> > > > I'm having trouble with the resgen task in the latest
> > > nightly build.
> > > > My build file looks like:
> > > >
> > > >     <property name="resource.dir" value="./resources" />
> > > >
> > > >     <target name="build" description="Builds the current
> > > configuration">
> > > >         <mkdir dir="${resource.dir}" />
> > > >
> > > >         <resgen verbose="true" todir="${resource.dir}">
> > > >              <resources prefix="${nant.project.name}">
> > > >                 <includes name="**/*.resx" />
> > > >              </resources>
> > > >         </resgen>
> > > >        [...]
> > > >
> > > > My project directory contains 2 .resx files. With the 0.84
> > > build, the
> > > > resgen task creates 2 files with ".resources" extensions in a
> > > > "resources" subdirectory, each with the base name of one of
> > > the .resx
> > > > files, and each of whose names are prefixed with the
> > > project name. So
> > > > if my project name were "MyProject" and my .resx files were
> > > Foo1.resx
> > > > and Foo2.resx, my resources directory would have
> > > > MyProject.Foo1.resources and MyProject.Foo2.resources.
> > > That's what I
> > > > expect, and what I want. In the 0.85 nightly build, nothing gets
> > > > written to the resources subdirectory. Instead, the output
> > > filenames
> > > > following the resgen.exe "/compile" switch are both
> > > ".resources". So
> > > > of course what happens is that the resources for the first
> > > .resx file
> > > > are written to a file called ".resources" in my source
> > > directory, and
> > > > the resources for the second .resx file are written to the same
> > > > filename, overwriting the first one.
> > > >
> > > > Unfortunately, I can't use the 0.84 build, since one of my projects
> > > > needs to load an XML schema file as an embedded resource. The XML
> > > > schema file has been retrieved from source control, and so is
> > > > read-only. There's a known bug in 0.84 that causes it to crash when
> > > > embedding a read-only resource file like that. That bug is fixed in
> > > > the nightly build.
> > > >
> > > > Has the required syntax for the resgen task changed since 0.84?
> > > >
> > > > Tom
> > > >
> > > >
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: IBM Linux Tutorials
> > > > Free Linux tutorial presented by Daniel Robbins, President
> > > and CEO of
> > > > GenToo technologies. Learn everything from fundamentals to system
> > > >
> > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > > > _______________________________________________
> > > > Nant-users mailing list
> > > > [EMAIL PROTECTED]
> > > > https://lists.sourceforge.net/lists/listinfo/nant-users
> > > >
> > > >
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: IBM Linux Tutorials
> > > Free Linux tutorial presented by Daniel Robbins, President
> > > and CEO of GenToo technologies. Learn everything from
> > > fundamentals to system
> > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > > _______________________________________________
> > > Nant-users mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/n> ant-users
> > >
> >
> >
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to