• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

Ant tool and build.xml

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22809
132
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to our Ant / build tools forum.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic