Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
Win a copy of Serverless Applications with Node.js this week in the NodeJS 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

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: 20568
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.
We don't have time to be charming! Quick, read this tiny ad:
global solutions you can do in your home or backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!