dev@glassfish.java.net

Re: Ant for GlassFish installation

From: Dinesh Patil <Dinesh.Patil_at_Sun.COM>
Date: Fri, 16 Mar 2007 10:03:40 -0700

Arun, comments inline.

Arun Gupta wrote:

> Dinesh,
>
> The original request was
>
> -- cut here --
> GlassFish installation instructions [1] say:
>
> "GlasssFish installation requires JDK 5 and Ant 1.6.5."
>
> There is no need for an additional Ant 1.6.5 installation on your
> machine.

Yes that's correct, on windows there is no permission issue, but for
unix env, ant directory doesn't have execute permissions.
so we will add one more mandatory step of "chmod" on unix env..
we can make this change so Ant can be removed from the user installation
requirement, which is not really a pre-requisite if you see Build
instructions, this is for users only.
https://glassfish.dev.java.net/public/BuildGlassFish.html#pre_req
thanks
Dinesh

> I always configure GlassFish using:
>
> lib\ant\bin\ant -f setup.xml
>
> and it works!
>
> Is there some other reason Ant 1.6.5 is required explicitly ?
> -- cut here --
>
> I don't see a need to download Ant additionally. Can you explain ?
>
> -Arun
>
> Dinesh Patil wrote:
>
>> Arun,
>>
>> Earlier instructions were for Windows, which were correct actually..
>> I have added Unix/Linux instructions to change permissions.
>>
>> We recommend that you use the version of ant included in GlassFish
>> from the \glassfish\lib\ant (windows) directory. For Unix/Linux, you
>> will have to set execute permissions for the ant binaries as below.
>>
>> % chmod -R +x glassfish/lib/ant/bin
>>
>> thanks
>> Dinesh
>>
>> Arun Gupta wrote:
>>
>>> Hi Dinesh,
>>>
>>> This issue is now resolved. Can you please update the instructions
>>> now ?
>>>
>>> Thanks,
>>> -Arun
>>>
>>> Dinesh Patil wrote:
>>>
>>>> Hi Arun,
>>>> I am currently working on fixing the issue #537, The "ant"
>>>> executable does not have execute permission ...
>>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=537
>>>>
>>>> once you install the
>>>> http://java.net/download/javaee5/promoted/SunOS_X86/glassfish-installer-v2-b36.jar
>>>> file, ant in lib/ant/bin doesn't have execute permissions, so need
>>>> to set the permissions explicitely or have ANT_HOME defined.
>>>>
>>>> But once issues #537 is fixed this will not be a problem, i will
>>>> update the instructions also.
>>>> thanks
>>>> Dinesh
>>>>
>>>> Arun Gupta wrote:
>>>>
>>>>> GlassFish installation instructions [1] say:
>>>>>
>>>>> "GlasssFish installation requires JDK 5 and Ant 1.6.5."
>>>>>
>>>>> There is no need for an additional Ant 1.6.5 installation on your
>>>>> machine. I always configure GlassFish using:
>>>>>
>>>>> lib\ant\bin\ant -f setup.xml
>>>>>
>>>>> and it works!
>>>>>
>>>>> Is there some other reason Ant 1.6.5 is required explicitly ?
>>>>>
>>>>> [1] https://glassfish.dev.java.net/downloads/v2-b36.html
>>>>>
>>>>> Thanks,
>>>>> -Arun
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>
>