Ant Script Understanding

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • muzu1232004
    New Member
    • Aug 2007
    • 16

    Ant Script Understanding

    May i know what exactly an ant script means and why is significant and when we actually use it ?
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by muzu1232004
    May i know what exactly an ant script means and why is significant and when we actually use it ?
    Do you know what the 'make' program is all about? 'ant' is similar but uses
    quite another philosophy on what exactly needs to be made. Google can tell
    you about the details.

    kind regards,

    Jos

    Comment

    • muzu1232004
      New Member
      • Aug 2007
      • 16

      #3
      Originally posted by JosAH
      Do you know what the 'make' program is all about? 'ant' is similar but uses
      quite another philosophy on what exactly needs to be made. Google can tell
      you about the details.

      kind regards,

      Jos

      i do not know what 'make' program is all about ? Please let me know in simple terms.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by muzu1232004
        i do not know what 'make' program is all about ? Please let me know in simple terms.
        'make' (and 'ant') take care of the build process that you'd otherwise have to do
        manually. Suppose you have files A.java, B.java, C.java and D.java. D depends
        on B and C, and both B and C depend on A.

        Suppose you compile them all, so you now also have A.class, B.class, C.class
        and D.class. Next you change D.java; which files have to be recompiled? And
        what if you change B.java?

        The javac compiler does a lot of work itself for this but there's more that needs
        to be done: resources (.gifs, .jpegs, .properties files etc) need to be up to date,
        the entire shebang probably needs to end up in a jar file, a previous version
        probably needs to be deleted. All intermediate files probably have to go, etc.

        That's what 'make' and 'ant' can do for you, both in their own way and 'ant' is
        the chosen utility for Java.

        kind regards,

        Jos

        Comment

        Working...