This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Ant target not working properly on linux server  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have the following ant script in my application,

<target name="schema_update" depends="persistence_config"
description="Update missing columns DB schema from the O/R mapping files">
<taskdef name="schemaupdate"
classname="net.sf.hibernate.tool.hbm2ddl.SchemaUpdateTask"
classpathref="project.class.path" />

<schemaupdate
properties="${release.dir}/${config.dir}/hibernate.properties"
quiet="no" text="no" >
<fileset dir="${config.hbm.dir}">
<include name="**/*.hbm.xml"/>
</fileset>
</schemaupdate>
</target>

This is the target to update the missing table columns from the *.hbm.xml to the DB (using Hibernate's SchemaUpdateTask).
The project.class.path is defined as,

<path id="project.class.path">
<pathelement location="${release.dir}/${persistence.dir}/${persistence.dir}_jar" />
<pathelement location="${release.dir}/${config.dir}" />
<fileset dir="${modules.ext.dir}">
<include name="**/*.jar" />
</fileset>
<fileset dir="${modules.dir}">
<include name="**/*.jar" />
</fileset>
</path>

Running this ant target is working fine on windows environment, where as it is not working properly on linux environment.

Can you suggests me how to give the classpath so that it will work on Linux also.

Regards
Ganesan
 
Bartender
Posts: 20153
104
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see anything obviously wrong. Try running ant with the '-v' option and see if any of the file paths are incorrect.
 
He baked a muffin that stole my car! And this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!