Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

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: 20568
120
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
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!