• 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
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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: 19801
93
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!