Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #15793 > unrolled thread
| Started by | Greg <shireyg@gmail.com> |
|---|---|
| First post | 2012-07-02 17:24 -0700 |
| Last post | 2012-07-05 20:25 -0400 |
| Articles | 9 — 5 participants |
Back to article view | Back to comp.lang.java.programmer
ant task keep basedir on include Greg <shireyg@gmail.com> - 2012-07-02 17:24 -0700
Re: ant task keep basedir on include markspace <-@.> - 2012-07-02 19:53 -0700
Re: ant task keep basedir on include Roedy Green <see_website@mindprod.com.invalid> - 2012-07-03 05:18 -0700
Re: ant task keep basedir on include Gene Wirchenko <genew@ocis.net> - 2012-07-03 09:04 -0700
Re: ant task keep basedir on include Roedy Green <see_website@mindprod.com.invalid> - 2012-07-03 14:10 -0700
Re: ant task keep basedir on include Gene Wirchenko <genew@ocis.net> - 2012-07-03 14:38 -0700
Re: ant task keep basedir on include Roedy Green <see_website@mindprod.com.invalid> - 2012-07-04 05:20 -0700
Re: ant task keep basedir on include Gene Wirchenko <genew@ocis.net> - 2012-07-04 12:58 -0700
Re: ant task keep basedir on include Arne Vajhøj <arne@vajhoej.dk> - 2012-07-05 20:25 -0400
| From | Greg <shireyg@gmail.com> |
|---|---|
| Date | 2012-07-02 17:24 -0700 |
| Subject | ant task keep basedir on include |
| Message-ID | <a641d58a-792c-4e5c-a777-c41e501eff22@googlegroups.com> |
I am trying to maintain my dependencies in an ant build system across multiple files. I would like each task to be able to use their own respective build files that are in their directory when they are called upon. How do I tell an imported task that I have put in a "depends" to use it's own basedir and not the one of the importer? Thanks! Greg
[toc] | [next] | [standalone]
| From | markspace <-@.> |
|---|---|
| Date | 2012-07-02 19:53 -0700 |
| Message-ID | <jstmqk$c6o$1@dont-email.me> |
| In reply to | #15793 |
On 7/2/2012 5:24 PM, Greg wrote: > I am trying to maintain my dependencies in an ant build system across > multiple files. I would like each task to be able to use their own > respective build files that are in their directory when they are > called upon. How do I tell an imported task that I have put in a > "depends" to use it's own basedir and not the one of the importer? I think "it depends," but it sounds like you might want the subant task: <http://ant.apache.org/manual/Tasks/subant.html> Note especially the second example at the bottom of that page. Is that like what you are looking for?
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-07-03 05:18 -0700 |
| Message-ID | <llo5v7d0ro5vjr69k6ch93e09o9c0mrjeb@4ax.com> |
| In reply to | #15793 |
On Mon, 2 Jul 2012 17:24:12 -0700 (PDT), Greg <shireyg@gmail.com> wrote, quoted or indirectly quoted someone who said : >I am trying to maintain my dependencies in an ant build system across multi= >ple files. I would like each task to be able to use their own respective b= >uild files that are in their directory when they are called upon. How do I= > tell an imported task that I have put in a "depends" to use it's own based= >ir and not the one of the importer? My solution to most ant problems is to use a stomper, a java program that generates the ant scripts. That way I can get around many of ant's limitations with verbosity. It also makes them much easier to maintain. Any change you make is propagated to all your scripts. -- Roedy Green Canadian Mind Products http://mindprod.com Why do so many operating systems refuse to define a standard temporary file marking mechanism? It could be a reserved lead character such as the ~ or a reserved extension such as .tmp. It could be a file attribute bit. Because they refuse, there is no fool-proof way to scan a disk for orphaned temporary files and delete them. Further, you can't tell where the orhaned files ame from. This means the hard disks gradually fill up with garbage.
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2012-07-03 09:04 -0700 |
| Message-ID | <ru56v7pepr5jt69v8d4b0kcg29bf5edn4l@4ax.com> |
| In reply to | #15800 |
On Tue, 03 Jul 2012 05:18:35 -0700, Roedy Green
<see_website@mindprod.com.invalid> wrote:
>On Mon, 2 Jul 2012 17:24:12 -0700 (PDT), Greg <shireyg@gmail.com>
>wrote, quoted or indirectly quoted someone who said :
>
>>I am trying to maintain my dependencies in an ant build system across multi=
>>ple files. I would like each task to be able to use their own respective b=
>>uild files that are in their directory when they are called upon. How do I=
>> tell an imported task that I have put in a "depends" to use it's own based=
>>ir and not the one of the importer?
>
>My solution to most ant problems is to use a stomper, a java program
>that generates the ant scripts. That way I can get around many of
>ant's limitations with verbosity. It also makes them much easier to
>maintain. Any change you make is propagated to all your scripts.
"stomper"? What a horrible name for something that generates
things, especially ant-related!
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-07-03 14:10 -0700 |
| Message-ID | <lrn6v7h4jt6q12m7grduv285d6t318neh7@4ax.com> |
| In reply to | #15804 |
On Tue, 03 Jul 2012 09:04:28 -0700, Gene Wirchenko <genew@ocis.net> wrote, quoted or indirectly quoted someone who said : > > "stomper"? What a horrible name for something that generates >things, especially ant-related! The term was coined by Hank van Tunen, a guy who worked on my team on the first Mac app in Canada. It stomped out things like a machine would impress coins. -- Roedy Green Canadian Mind Products http://mindprod.com Why do so many operating systems refuse to define a standard temporary file marking mechanism? It could be a reserved lead character such as the ~ or a reserved extension such as .tmp. It could be a file attribute bit. Because they refuse, there is no fool-proof way to scan a disk for orphaned temporary files and delete them. Further, you can't tell where the orhaned files ame from. This means the hard disks gradually fill up with garbage.
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2012-07-03 14:38 -0700 |
| Message-ID | <hhp6v75q4e7quqoev2r6rc1lubguetu7hp@4ax.com> |
| In reply to | #15805 |
On Tue, 03 Jul 2012 14:10:35 -0700, Roedy Green
<see_website@mindprod.com.invalid> wrote:
>On Tue, 03 Jul 2012 09:04:28 -0700, Gene Wirchenko <genew@ocis.net>
>wrote, quoted or indirectly quoted someone who said :
>
>>
>> "stomper"? What a horrible name for something that generates
>>things, especially ant-related!
>
>The term was coined by Hank van Tunen, a guy who worked on my team on
>the first Mac app in Canada. It stomped out things like a machine
>would impress coins.
That would be "stamped" out.
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2012-07-04 05:20 -0700 |
| Message-ID | <07d8v7dcrbh1qggfug1483ros52jlmplu0@4ax.com> |
| In reply to | #15806 |
On Tue, 03 Jul 2012 14:38:20 -0700, Gene Wirchenko <genew@ocis.net> wrote, quoted or indirectly quoted someone who said : > > That would be "stamped" out. see designed a boot logo, so HE meant stomped. -- Roedy Green Canadian Mind Products http://mindprod.com Why do so many operating systems refuse to define a standard temporary file marking mechanism? It could be a reserved lead character such as the ~ or a reserved extension such as .tmp. It could be a file attribute bit. Because they refuse, there is no fool-proof way to scan a disk for orphaned temporary files and delete them. Further, you can't tell where the orhaned files ame from. This means the hard disks gradually fill up with garbage.
[toc] | [prev] | [next] | [standalone]
| From | Gene Wirchenko <genew@ocis.net> |
|---|---|
| Date | 2012-07-04 12:58 -0700 |
| Message-ID | <1v79v71tj42cu7pkpt8s2ehrgu2qmndnj8@4ax.com> |
| In reply to | #15808 |
On Wed, 04 Jul 2012 05:20:11 -0700, Roedy Green
<see_website@mindprod.com.invalid> wrote:
>On Tue, 03 Jul 2012 14:38:20 -0700, Gene Wirchenko <genew@ocis.net>
>wrote, quoted or indirectly quoted someone who said :
>> That would be "stamped" out.
>
>see designed a boot logo, so HE meant stomped.
Ah.
"boot" as in worn: that is special use of the word in this
newsgroup!
Sincerely,
Gene Wirchenko
[toc] | [prev] | [next] | [standalone]
| From | Arne Vajhøj <arne@vajhoej.dk> |
|---|---|
| Date | 2012-07-05 20:25 -0400 |
| Message-ID | <4ff6307e$0$283$14726298@news.sunsite.dk> |
| In reply to | #15800 |
On 7/3/2012 8:18 AM, Roedy Green wrote: > On Mon, 2 Jul 2012 17:24:12 -0700 (PDT), Greg <shireyg@gmail.com> > wrote, quoted or indirectly quoted someone who said : > >> I am trying to maintain my dependencies in an ant build system across multi= >> ple files. I would like each task to be able to use their own respective b= >> uild files that are in their directory when they are called upon. How do I= >> tell an imported task that I have put in a "depends" to use it's own based= >> ir and not the one of the importer? > > My solution to most ant problems is to use a stomper, a java program > that generates the ant scripts. That way I can get around many of > ant's limitations with verbosity. It also makes them much easier to > maintain. Any change you make is propagated to all your scripts. Create a new tool to generate input for another tool. For a one time or a few times problem that is a great solution. But for a many time problem it is not the right solution. Arne
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.programmer
csiph-web