Got it. i was on the right track with concat. just needed to add the
loadfile to get my data, put that into a propery and then use the
value of that property to build my new file!

whew talk about going around your arse to get to your elbow!

<loadfile srcFile="DB/MS SQL
${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql"
property="sql.text" />
<concat encoding="UTF-8" destfile="DB/MS SQL
${db.server.version}/boomsocket_MSSQL_${db.server.version}_temp.sql"><![CDATA[${sql.text}]]></concat>

Thanks all!

jonese

On Feb 13, 2008 11:36 AM, jonese <[EMAIL PROTECTED]> wrote:
> Here's what i have now inside a target:
> <touch file="DB/MS SQL
> ${db.server.version}/boomsocket_MSSQL_${db.server.version}_temp.sql"/>
> <concat destfile="DB/MS SQL
> ${db.server.version}/boomsocket_MSSQL_${db.server.version}_temp.sql">
>         <fileset file="DB/MS SQL
> ${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql" />
> </concat>
> <delete file="DB/MS SQL
> ${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql" />
> <move file="DB/MS SQL
> ${db.server.version}/boomsocket_MSSQL_${db.server.version}_temp.sql"
> tofile="DB/MS SQL
> ${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql" />
> <replaceregexp file="DB/MS SQL
> ${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql"
>         match="\[[a-zA-Z0-1]{1,}\]"
>         replace="[${db.name}]"
>         flags="i" />
>
> The problem is that the concat not only concat's the data but also the
> "headers" of the file thereby corrupting my new file as well.
>
> So essentially what i need is some way to read the contents of a file
> and then take those contents and input them into another file.
>
> i'm on Windows XP if i need to toss this off to some command line stuff.
>
> jonese
>
>
> On Feb 13, 2008 10:53 AM, Scot P. Floess <[EMAIL PROTECTED]> wrote:
> > Are you simply trying to copy file A to file B?  Or take the contents of
> > A and append to B?
> >
> >
> > jonese wrote:
> > > Hey all i need to take the content of file A and place it into File B.
> > > anyone know the best way to accomplish this?
> > >
> > > jonese
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> >
> > --
> > Scot P. Floess
> > 27 Lake Royale
> > Louisburg, NC  27549
> >
> > 252-478-8087 (Home)
> > 919-754-4592 (Work)
> >
> > Chief Architect JPlate   http://sourceforge.net/projects/jplate
> > Chief Architect JavaPIM  http://sourceforge.net/projects/javapim
> >
> > Architect Keros          http://sourceforge.net/projects/keros
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to