ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40887] - copy task & sql task not working for DB2 license jar
Date Mon, 06 Nov 2006 05:21:32 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40887>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40887





------- Additional Comments From shrirangm@rediffmail.com  2006-11-05 21:21 -------
Hi all,
Below is the code i am using:-

<target name="copy.licensejar">
 <copy todir="${installkit.lib.dir}" file="${ai.db2.licensejar}" 
   verbose="true" overwrite="true" failonerror="true"/>
 <path id="project.class.path">
  <pathelement location="./resources"/>
  <fileset dir="./installlib/" includes="*.jar"/>			
 </path>		
 <property name="project.class.path" refid="project.class.path"/>
 <echo message="the value is :- ${project.class.path}"/>
</target>
<target name="verify.database.access">
 <echo message="the project.class.path is :- ${project.class.path}"/>
 <echo message="Check whether database can be reached: ${db.url} 
  userid=${ai.db.username}"/>
 <sql driver="${db.driver.name}" url="${db.url}" userid="${ai.db.username}" 
  password="${ai.db.password}" onerror="abort">
  "select current_timestamp from sysibm.sysdummy1"
 </sql>
</target>
<target name="verify.input" depends="copy.licensejar,verify.database.access"/>


My Installer calls target "verify.input" which 
depepnds on copy.licensejar,verify.database.access targets.
now <echo message="the project.class.path is :- ${project.class.path}"/>
line prints the classpath which inlcudes db2jcc_license_cu.jar also.  
 	

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message