--- "Geir Magnusson Jr." <[EMAIL PROTECTED]> wrote:

-snip-
 
> A few questions.  Don't assume any point-of-view
> motivating these - just
> trying to figure out what this is :
> 
> 1) Can you show us what this does?  I didn't get it
> from the above
> description.  Maybe show us input and output?

I've attached 3 files to this e-mail that demonstrate
a contrived use case. server.vm is stripped down
version of a Tomcat's configuration file (server.xml);
server.jConf is a control file; and user.txt is the
user interaction. The idea is that the program prompts
user to enter parameters based on questions defined in
the .jConf control file. Then it merges them into a
template to generate output.

This gets more interesting if your config files are
more complex, or if you are deploying an app on
several machines. 

> 2) Can this be done with texen?
> 3) If so, what advantages does it have over texen?
> 4) If not, can you merge Texen and your tool?  Why
> not if not? :)

The main difference is that the proposed tool is a
deployment time utility, rather than build time. It's
meant to be used from command-line, not ant build.
Also, unlike Texen, the control file only describes
how to obtain the context info, not what goes into the
context.

I think this is sufficiently different that it should
live under a separate Java package.

-Igor Postelnik

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com
<Server port="8005" shutdown="SHUTDOWN" debug="0">
        <Service name="Tomcat-Standalone">
                <Connector className="org.apache.catalina.connector.http.HttpConnector"
                        port="$HTTPPORT" minProcessors="5" maxProcessors="75"
                        enableLookups="true" redirectPort="8443" acceptCount="10" 
debug="0"
                        connectionTimeout="$CONNECTION_TIMEOUT" />

                <Engine name="Standalone" defaultHost="$HOSTNAME" debug="0">
<!-- Global logger unless overridden at lower levels -->
                        <Logger className="org.apache.catalina.logger.FileLogger"
                                prefix="catalina_log." suffix=".txt" timestamp="true" 
/>

<!-- Because this Realm is here, an instance will be shared globally -->
                        <Realm className="org.apache.catalina.realm.MemoryRealm" />

<!-- Define the default virtual host -->
                        <Host name="$HOSTNAME" debug="0" appBase="webapps" 
unpackWARs="true">
                                <Valve 
className="org.apache.catalina.valves.AccessLogValve"
                                        directory="logs" 
prefix="${HOSTNAME}_access_log." suffix=".txt"
                                        pattern="common" />

                                <Logger 
className="org.apache.catalina.logger.FileLogger"
                                        directory="logs" prefix="${HOSTNAME}_log." 
suffix=".txt"
                                        timestamp="true" />
                        </Host>
                </Engine>
        </Service>
</Server>


<jconf template="server.vm">
        <property name="HOSTNAME" prompt="Web server host name">
                <default class=".HostName" />
        </property>
        <property name="HTTPPORT" prompt="Web server port">
                <default>8080</default>
        </property>
        <property name="CONNECTION_TIMEOUT" prompt="Connection timeout">
                <default>60000</default>
        </property>
</jconf>
jConf 1.0

Web server host name (babylon):
Web server port (8080): 80
Connection timeout (60000): 30000
--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to