Setting the JVM properties for a Java ANT task can be bit confusing and to make it clear, am showing two samples below to compare the wrong way for doing vs the right way.
Wrong way
<java classname="com.tmpl.commerce.catalog.dataload.datareader.CatalogEntryCatalogGroupRelationPreProcessor" fork="true" failonerror="true" output="${log.dir}/dataload-preprocess-${dataload.startTime}.log"><arg value="${dataload.preprocess}"/>
<arg value="${dataload.catalogId}"/>
<arg value="${db.user}"/>
<arg value="${db.pwd.encrypted}"/>
<arg value="${db.name}"/>
<arg value="${db.server}"/>
<arg value="${db.port}"/>
<arg value="1000" />
<arg value="false"/>
<jvmarg value="-Dwc.home=/usr/WebSphere/CommerceServer70 -Djava.util.logging.config.file=logging.properties" />
<classpath>
<path refid="classpath" />
</classpath>
</java>
Right way
<java classname="com.tmpl.commerce.catalog.dataload.datareader.CatalogEntryCatalogGroupRelationPreProcessor" fork="true" failonerror="true" output="${log.dir}/dataload-preprocess-${dataload.startTime}.log"><arg value="${dataload.preprocess}"/>
<arg value="${dataload.catalogId}"/>
<arg value="${db.user}"/>
<arg value="${db.pwd.encrypted}"/>
<arg value="${db.name}"/>
<arg value="${db.server}"/>
<arg value="${db.port}"/>
<arg value="1000" />
<arg value="false"/>
<jvmarg value="-Dwc.home=/usr/WebSphere/CommerceServer70 " />
<jvmarg value="-Djava.util.logging.config.file=logging.properties" />
<classpath>
<path refid="classpath" />
</classpath>
</java>
No comments:
Post a Comment