Does anybody know what jar files contain the ant tasks which can be used to deploy Dar files ?
Thanks
- Harjit
It is very easy to find: you should look for "emc.install" string into all the EMC plug-in descriptors ("plugin.xml"). But I 99% sure, that this information does not help you. It looks that the Ant task does not work if it is not running from (Headless) Composer.
I did find it but you cannot use it with Ant. you have to use it thru the Headless composer. But I have a intresting situation
when I call the headless composer from a bat file it works fine but when I call it thru the java ant task. It launches eclipse. Its not even composer. Any clues why that might be.
Try to use something like this in your script:
<java classpath="${composer.home.dir}/startup.jar" classname="org.eclipse.core.launcher.Main" dir="${composer.tempinstallworkspace.dir}" fork="true" failonerror="true" newenvironment="true"> <jvmarg value="-Ddfc.properties.file=${deploy.dfc.properties}"/> <arg line="-data ${composer.tempinstallworkspace.dir}" /> <arg line="-application org.eclipse.ant.core.antRunner" /> <arg line="-buildfile ${ant.file}" /> <arg value="${target.installdar.name}" /></java>
target.installdar.name - the property containing the name of the target (in the current script file) which uses Documentum Ant tasks.
Dmitri,
Thanks for all your help. Here is what I found
To actually run headless composer thru Ant. you have to not use the <args> tag. You have to use to pass it in one line. You can use either the exec task and use the args line attribute instead of specifing it on individual line.