You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Johan Adelöw <jo...@corustechnologies.com> on 2000/11/03 16:35:23 UTC

Problems when using the filter function with copy

I am trying to use filtering with copy but cant make it work. Am I missing
someting here?

	<filter token="tmp_file_dir" value=" ${TMP_FILE_DIR}" />
	<copy file="${exec_file}" tofile="${TMP_FILE_DIR}/tmp_run_file.sql"
overwrite="yes " filtering="yes"/>


exec_file:

...

INSERT INTO OGO_GEN_PARAMS VALUES ('OX_DEFAULT',
                                   '@tmp_file_dir@',
                                   'pub_%s_cliapt',
                                   'sub_%s_cliapt', 
...


/Johan
 
_________________________________________________
 
E-mail: johan.adelow@corustechnologies.com
Direct: +46-8-678 80 60
Mobile: +46-70-563 13 97
Office: +46-8-4403860 (Always open)
Home page: www.corustechnologies.com
_________________________________________________
 


RE: Problems when using the filter function with copy

Posted by Eric Lefevre <er...@valtech.co.uk>.
You need one space before the token:

  weblogic.ejb.deploy= @JAR_PATH@

Of course, it may produce a bogus result for you because of the additional
space... if you find a way of getting rid of it, let me know!

Eric

> -----Original Message-----
> From: Johan Adelöw [mailto:johan.adelow@corustechnologies.com]
> Sent: 03 November 2000 15:35
> To: ant user mailing list
> Subject: Problems when using the filter function with copy
>
>
>
> I am trying to use filtering with copy but cant make it work. Am I
> missing someting here?
>
> 	<filter token="tmp_file_dir" value=" ${TMP_FILE_DIR}" />
> 	<copy file="${exec_file}"
> tofile="${TMP_FILE_DIR}/tmp_run_file.sql" overwrite="yes "
> filtering="yes"/>
>
>
> exec_file:
>
> ...
>
> INSERT INTO OGO_GEN_PARAMS VALUES ('OX_DEFAULT',
>                                    '@tmp_file_dir@',
>                                    'pub_%s_cliapt',
>                                    'sub_%s_cliapt',
> ...
>
>
> /Johan
>
> _________________________________________________
>
> E-mail: johan.adelow@corustechnologies.com
> Direct: +46-8-678 80 60
> Mobile: +46-70-563 13 97
> Office: +46-8-4403860 (Always open)
> Home page: www.corustechnologies.com
> _________________________________________________
>
>
>


RE: Problems when using the filter function with copy

Posted by Alan Gerhard <AG...@E-SyncNet.Com>.
Problems when using the filter function with copytry => @@tmp_file_dir@@
iso=> @tmp_file_dir@
  -----Original Message-----
  From: Johan Adelöw [mailto:johan.adelow@corustechnologies.com]
  Sent: Friday, November 03, 2000 10:35 AM
  To: ant user mailing list
  Subject: Problems when using the filter function with copy 




  I am trying to use filtering with copy but cant make it work. Am I missing someting here? 

          <filter token="tmp_file_dir" value=" ${TMP_FILE_DIR}" /> 
          <copy file="${exec_file}" tofile="${TMP_FILE_DIR}/tmp_run_file.sql" overwrite="yes " filtering="yes"/> 



  exec_file: 

  ... 

  INSERT INTO OGO_GEN_PARAMS VALUES ('OX_DEFAULT', 
                                     '@tmp_file_dir@', 
                                     'pub_%s_cliapt', 
                                     'sub_%s_cliapt', 
  ... 



  /Johan 
    
  _________________________________________________ 
    
  E-mail: johan.adelow@corustechnologies.com 
  Direct: +46-8-678 80 60 
  Mobile: +46-70-563 13 97 
  Office: +46-8-4403860 (Always open) 
  Home page: www.corustechnologies.com 
  _________________________________________________