That is why I am using the override="true" in the task so that
I can keep re-using the property named destfile
The real problem is that I don't know how to replace only the "leading"
directory path. I want to change
file = C:/dir_viewer/Since_Last_Change/abc/yada yada/yada/Bob's Report.doc
Hello all,
I am new to this mailing list.
I have a question about avoiding redundancy when declaring paths and filesets.
A lot of times I declare a and then I reference it from
other targets. That's OK, but what about targets like . How can
I reuse the defined ? As far as I know I cannot set a
Hi,
quick hack, without handling of file endings, something like =
${part2}
${part1}
s=project.getProperty("part1")+project.getProperty("part2");
project.setProperty("final", s);
${final}
Buildfile: C:\WKS\Eclipse\test
--- Konstantinos Karadamoglou <[EMAIL PROTECTED]>
wrote:
[SNIP]
> What I could do is
> to have a global but this cannot be done
> regarding the
> nature of the project I am involved with. There is
> not a starting
> directory for .
>
This use will be covered in more than one way in Ant
1.7 with
Thanks Matt for your help,
Is it possible to share the way that you avoid that kind of
redundancy? What's your approach when you compose build.xml files
On 15/03/06, Matt Benson <[EMAIL PROTECTED]> wrote:
> --- Konstantinos Karadamoglou <[EMAIL PROTECTED]>
> wrote:
> [SNIP]
> > What I could do is
Another approach is using id/refid on the fileset itself.
AntContrib has also a task or something like that. Havent used
it
Jan
>-Ursprüngliche Nachricht-
>Von: Konstantinos Karadamoglou [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 15. März 2006 17:51
Hi,
I am learning Ant and would like to write something like a pattern rule as
used in 'make'. Something like:
%.o: %.cpp
cc ...
I read the manual but didn't notice something that would do that. Could
anyone please give me a pointer?
Thanks,
Rodrigo
--
Thanks Jan, I will have a look at the path2fileset target
On 15/03/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Another approach is using id/refid on the fileset itself.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> AntContrib has also a task or something like that. Havent used
> it ...
Please look at task:
http://ant.apache.org/manual/CoreTasks/apply.html
- Alexey.
Rodrigo de Salvo Braz wrote:
Hi,
I am learning Ant and would like to write something like a pattern
rule as used in 'make'. Something like:
%.o: %.cpp
cc ...
I read the manual but didn't notice something