Making build-war non-interactive

Steven Teixeira steixeira at csustan.edu
Wed Jan 20 23:19:16 UTC 2021


Of course I find an answer immediately after posting.  I executed the following, for those that may find this in the future:

"C:\Program Files (x86)\Shibboleth\IdP\bin\build.bat" -Didp.target.dir="C:\Program Files (x86)\Shibboleth\IdP"

This seems most appropriate, but I’m sure others can correct me.

Steven Teixeira

From: users <users-bounces at shibboleth.net> On Behalf Of Steven Teixeira
Sent: Wednesday, January 20, 2021 3:10 PM
To: Shib Users <users at shibboleth.net>
Subject: Making build-war non-interactive

CAUTION: This message originated from outside of CSU Stanislaus. Do not click on links or open attachments unless you recognize the sender and are expecting the message.

When executing build.bat in the bin directory, we are asked to input/confirm the installation directory as mentioned in https://wiki.shibboleth.net/confluence/display/IDP4/Configuration

However, our install/change process is automated and this is a stopping point for us in that process.  This was something we could work around in IdPv3 by commenting out the prompt for input and setting the property in build.xml like so:

    <target name="prompttarget" if="idp.ask.target">
        <TGT>prompttarget</TGT>
        <fail if="idp.noprompt">Input needed, silence demanded</fail>
        <!--<input message="Installation Directory:" addproperty="idp.target.dir" defaultvalue="${idp.target.default}" />-->
        <property name="idp.target.dir" value="${idp.target.default}" />
    </target>

However, in IdPv4, build.xml is much, much simpler and I imagine what used to be in build.xml is just abstracted away and moved somewhere else, but I’m not certain.  I haven’t been able to find it.

I have attempted to put a couple of things into build.xml to set the property, but I don’t know if the name(s) have changed between v3 and v4.  I’m also guessing that without explicitly preventing the prompt for input/confirmation, that likely doesn’t matter anyway.

I have also looked at https://wiki.shibboleth.net/confluence/display/IDP4/Programming+the+V4+Installer but I am not certain if this is relevant or would be helpful in some way that just isn’t clear to me yet.

Is it possible to accept the default installation directory non-interactively in IdPv4 somehow?

Steven Teixeira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20210120/9bcc1449/attachment.htm>


More information about the users mailing list