ARAT: too silent when not executing targets

Posted by cverbiest on 01-Feb-2016 09:33

Initial configuration of ARAT is difficult because the jobs are silent about missing properties, they just don't execute.

Even with ant debug you cant see which property is missing

checkRTBProps:
Class org.apache.tools.ant.taskdefs.condition.And loaded from parent loader (parentFirst)
Class org.apache.tools.ant.types.resources.selectors.And loaded from parent loader (parentFirst)
Class org.apache.tools.ant.taskdefs.condition.IsSet loaded from parent loader (parentFirst)
Condition false; not setting RtbPropsComplete
Condition false; not setting RtbDbNetworked
Class org.apache.tools.ant.types.resources.selectors.Not loaded from parent loader (parentFirst)
Class org.apache.tools.ant.taskdefs.condition.Or loaded from parent loader (parentFirst)
Class org.apache.tools.ant.types.resources.selectors.Or loaded from parent loader (parentFirst)
Condition true; setting RtbDbNotNetworked to true
Setting project property: RtbDbNotNetworked -> true
Class org.apache.tools.ant.taskdefs.condition.Equals loaded from parent loader (parentFirst)
Setting project property: input.RtbWspaceId -> Development

checkCompileProps:
Skipped because property 'RtbPropsComplete' not set.

BUILD SUCCESSFUL
Total time: 1 second

In automation/ant/rtb_common_targets.xml I added following code after setting RtbPropsComplete.

If RtbProps is not complete it echos all properties. In my case none of the properties are set, probably because my property file is silently not found. I'll post further further updates as I get along

        <if>
            <not>
                <isset property="RtbPropsComplete" />
            </not>
            <then>
                <echo level="error">RtbProps is NOT Complete
RtbDbName=${RtbDbName}
RtbLgDbName=${RtbLgDbName}
RtbDbHostName=${RtbDbHostName}
RtbDbPort=${RtbDbPort}
RtbInstallPath=${RtbInstallPath}
RtbCustomPath=${RtbCustomPath}
RtbWspaceId=${RtbWspaceId}
RtbUser=${RtbUser}
RtbPassword=${RtbPassword}
RtbDbSingleUser=${RtbDbSingleUser}
RtbAppServerConnection=${RtbAppServerConnection}
RtbUseAppServer=${RtbUseAppServer}
RtbParamFile=${RtbParamFile}
RtbReportBaseDir=${RtbReportBaseDir}
</echo>
            </then>
        </if>

All Replies

Posted by asthomas on 01-Feb-2016 09:45

Hey Carl,

Good idea. We will create an issue for this and look at including this.

Posted by cverbiest on 02-Feb-2016 09:00

Issue solved. I somehow managed to mess up the order of ant targets by accidentally  specifying more than one target on ant command line. The start target ended up too late in the list.

This thread is closed