• 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Ant target not working properly on linux server  RSS feed

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

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"
classpathref="project.class.path" />

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

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 dir="${modules.dir}">
<include name="**/*.jar" />

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.

Posts: 19801
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.
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!