Re: Ant Dependency Management

R0b0t1 <[email protected]>
Newsgroups gmane.comp.jakarta.ant.user
Message-ID <CAAD4mYg1OzEg9nk5ZGSjYX03c76=jvjzCPTGRT7-XGqyaUcR0A@mail.gmail.com>
Ahh, sorry. I just found the "uptodate" directive. I've done:

<uptodate srcfile="grammar.g4" targetfile="GrammarParser.java"
              property="grammar.uptodate"/>

<target name="build-grammar" unless="grammar.uptodate">
</target>

And all seems to be well.

On Sat, Oct 28, 2017 at 8:19 PM, R0b0t1 <[email protected]> wrote:
> Hello,
>
> On Sat, Oct 28, 2017 at 6:34 PM, Matt Benson <[email protected]> wrote:
>> If you're referring to Java compilation, tools like Ant and Maven
>> generally perform incremental compilation unless explicitly forced to
>> do otherwise, such as by "cleaning" (deleting) existing classfiles
>> from a previous compilation.
>>
>> HTH,
>> Matt
>>
>
> That does help: I realized I should amend my question. The ANTLR task
> included with Ant is very old, so I am using an exec task to run the
> parser generator instead. How do I add incremental build awareness to
> my build-grammar target? Currently, the build target depends on the
> build-grammar target. The build-grammar target is run every time,
> regardless of whether or not my grammar file has changed.
>
>
> On Sat, Oct 28, 2017 at 7:43 PM, Martin Gainty <[email protected]> wrote:
>> if you need frequently referenced jars loaded into a "known place" take a look at repository management:
>> Ivy:
>>
>> http://ant.apache.org/ivy/history/latest-milestone/tutorial/build-repository.html
>>
>>
>> Building a repository | Apache Ivy<http://ant.apache.org/ivy/history/latest-milestone/tutorial/build-repository.html>
>> ant.apache.org
>> Building a repository The install Ant task lets you copy a module or a set of modules from one repository to another. This is very useful to build and maintain an ...
>>
>
> Thanks, I was considering Ivy for this. It took me a while to figure
> out what the terminology meant and this link helped.
>
>> Maven Repository Management:
>>
>> https://maven.apache.org/repository-management.html
>>
>> Maven – Best Practice - Using a Repository Manager<https://maven.apache.org/repository-management.html>
>> maven.apache.org
>> A repository manager is a dedicated server application designed to manage repositories of binary components. The usage of a repository manager is considered an ...
>>
>
> Maven seems like it does too much for me. Coming from Linux, tools
> which reimplement package management tend to get in the way of my
> system. On Windows they work fair enough. However, it does seem the
> best supported.
>
>> Sonatype's Nexus repository is probably the most widely used repository manager of all:
>> https://www.sonatype.com/download-oss-sonatype
>> Download Repository OSS - Sonatype Nexus<https://www.sonatype.com/download-oss-sonatype>
>> www.sonatype.com
>> The latest version of Nexus Repository OSS, providing cutting-edge support for the formats below.
>>
>
> I prefer to use open source where possible. In any case, I can't
> figure out where to go on that site.
>
>
> Respectfully,
>      R0b0t1.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.