ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Querret <g.quer...@riverside-software.fr>
Subject File type mapping in external task
Date Tue, 03 Apr 2018 15:03:01 GMT
Hello all,


If I have an attribute mapped to a File type (such as setSrcDir(File file)
{ this.srcDir = file; } ), then passing an empty string (as in <MyTask
srcDir="" ) leads to srcDir set to baseDir (or current directory, not sure).
Is there a way to trap the empty string in the setter ? Or is it required
to change the setter to accept a String parameter, and create the File
object from the string ?

Thanks,

-- 
Gilles QUERRET

Riverside Software
15d route de Bellevue • 69440 Mornant • France
Mob : +33 662.525.532

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message