ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Baz" <ba...@goodconsultants.com>
Subject Re: Dependencies between two subdirectories
Date Fri, 12 Mar 2004 16:06:01 GMT
T,

You have been a great help! I will definitely try that out.

All, please have a nice weekend.

Barry

----- Original Message ----- 
From: "RADEMAKERS Tanguy" <tanguy.rademakers@swift.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Friday, March 12, 2004 8:00 AM
Subject: Re: Dependencies between two subdirectories


> Baz,
>
> >1. Can I email you privately?
> >
> yes, but the solution goes online here - agreed?
>
> >2. I have not used <uptodate> task before. Is your code doing the
> >followings?
> >
> >a. Target check.required will set property compile.required.
> >
> >
> only if the code needs to be recompiled
>
> >b. Property compile.required will be false if sap_ear file exists AND
> >sap_ear file AND if all the java and xml files are up to date?
> >
> almost - compile.required will be *undefined* if sap_ear file exists AND
> etc etc, but basically it's the same thing
>
> /t
>
> Baz wrote:
>
> >Tanguy,
> >
> >1. Can I email you privately?
> >
> >2. I have not used <uptodate> task before. Is your code doing the
> >followings?
> >
> >a. Target check.required will set property compile.required.
> >b. Property compile.required will be false if sap_ear file exists AND
> >sap_ear file AND if all the java and xml files are up to date?
> >
> >Thanks
> >
> >Barry
> >
> >----- Original Message ----- 
> >From: "RADEMAKERS Tanguy" <tanguy.rademakers@swift.com>
> >To: "Ant Users List" <user@ant.apache.org>
> >Sent: Friday, March 12, 2004 7:29 AM
> >Subject: Re: Dependencies between two subdirectories
> >
> >
> >
> >
> >>Baz wrote:
> >>
> >>
> >>
> >>>The first thing comes to my head is to do <ant dir="../B"
> >>>Target="compile"/> from directory A. Is it the right way to do it?
> >>>
> >>>
> >>>
> >>>
> >>>
> >>Baz,
> >>
> >>That's how i do it, plus the compile target in /B/build.xml looks like:
> >>
> >><target name="compile" depends="check.required" if="compile.required">
> >>...
> >></target>
> >>
> >>where the "check.required" targets checks if a compile is required:
> >>
> >>    <target name="check.required">
> >>        <condition property="compile.required">
> >>            <not>
> >>                <and>
> >>                    <available file="${SAP_EAR}"/>
> >>                    <uptodate targetfile="${SAP_EAR}">
> >>                        <srcfiles dir="${COMP_JAVA_SRC}"
> >>includes="**/*.java"/>
> >>                        <srcfiles dir="${COMP_SRC}/META-INF"
> >>includes="*.xml"/>
> >>                        <srcfiles file="${COMMON_JAR}"/>
> >>                        <srcfiles file="${EJBMSG_JAR}"/>
> >>                    </uptodate>
> >>                </and>
> >>            </not>
> >>        </condition>
> >>        <echo message="Build of ${COMP_NAME} required ?
> >>${compile.required}"/>
> >>    </target>
> >>
> >>
> >>so that B only rebuilds itself if it has to but A is guaranteed that the
> >>latest version of B will be available when A is built.
> >>
> >>Regs,
> >>/t
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>For additional commands, e-mail: user-help@ant.apache.org
> >>
> >>
> >>
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >For additional commands, e-mail: user-help@ant.apache.org
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message