• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Ant tool and build.xml

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

i have a web application that i want to build in netbeans IDE , this existing project has a build file and i want to build the enviroment using this build file and the ant build ,also i want to use glassfish v3 as my application server , so i used the netbeans wizard to build this web application from existing source but it always give me this error when i tey to clean and build the application "please JBOSS_HOME" , so it seems that the build file is built to deploy under jboss ... what should i do "i am also new to Ant build files "

any help please
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be in your project setting the application is set to JBOSS . Change it to Glassfish and then try .
 
anas ibraheem
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you ani for your reply

so what you mea, i should replace the JBOSS_HOME property to GLASSFISH_HOME ... i will show you a snipet of the build.xml file


<project name="AmpEP" default="build">

<property environment="env"/>
<property name="jboss_home" value="${env.JBOSS_HOME}" />
<property name="sun_jdk_root" value="${env.JAVA_HOME}"/>
<target name="init">
<condition property="jboss_home_set">
<available file="${jboss_home}" />
</condition>
<condition property="java_home_set">
<available file="${sun_jdk_root}" />
</condition>
<fail unless="jboss_home_set" message="Please set JBOSS_HOME to a valid location in your environment"/>
<fail unless="java_home_set" message="Please set JAVA_HOME to a valid location in your environment"/>
</target>

<property name="dist" location="dist"/>
<property name="ear" location="ear"/>
<property name="extlib" location="lib"/>
<property name="Build-status" value="Development"/>
<property name="exploded" location="ampep-exploded"/>



thank you ani ...
 
Sheriff
Posts: 21972
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Ant / build tools forum.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a start yes you'll need to change the various Jboss values to glassfish.

Actually a slightly better solution would be to pass in which application server you were targeting as a -D parameter on the command line (or read from a properties file). That way you could have both the Jboss and the glassfish configuration and simply call the one you wanted.
 
anas ibraheem
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you martijn

i think this would be a perfect solution .. i will try it and get back to you .

thanks
 
It's hard to fight evil. The little things, like a nice sandwich, really helps. Right tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic