dev@glassfish.java.net

Re: automate glassfish installation

From: Murali <Muralikrishna.Reddy_at_Sun.COM>
Date: Fri, 19 Sep 2008 01:11:13 +0530

Thanks Jason. It worked :) !!!!

-Murali


Jason Lee wrote:
> On Sep 18, 2008, at 2:29 PM, Murali wrote:
>> I'm trying to automate my glassfish installation by using a shell
>> script .
>> Does anyone of you know, how I can accept the license automatically
>> in a shell script as
>> java -jar glassfish-installer.jar keeps waiting for input
>> A/a/D/d
>
> This is how the Mojarra build does it. It's an ant script, but you
> should be able to translate it pretty easily:
>
> <echo file="${dependency.base.dir}/install.bat">
> <![CDATA[
> echo a > input
> java -Xmx256m -jar
> ${dependency.base.dir}/${glassfish.installer.jar}${fl.os}.jar -console
> < ./input
> ]]>
> </echo>
> <chmod file="${dependency.base.dir}/install.bat" perm="700"/>
> <exec executable="${dependency.base.dir}/install.bat"
> dir="${dependency.base.dir}" />
> <delete file="${dependency.base.dir}/install.bat"/>
> <delete file="${dependency.base.dir}/input"/>
> <ant antfile="${dependency.base.dir}/glassfish/setup.xml"
> dir="${dependency.base.dir}/glassfish" target="setup"/>
> <echo
> file="${dependency.base.dir}/glassfish/password.txt">AS_ADMIN_PASSWORD=adminadmin</echo>
>
>
>
> Jason Lee - x31197
> Senior Java Developer, Sun Microsystems
> GlassFish Admin Console Team
> Email: jasondlee_at_sun.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>