PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/library/server/rest/tests/htdocs/build.eant

http://github.com/jocelyn/EiffelWebReloaded
Unknown | 24 lines | 19 code | 5 blank | 0 comment | 0 complexity | d8a48f846540b4005d25bafa0d12bd71 MD5 | raw file
 1<?xml version="1.0"?>
 2
 3<project name="update_htdocs" default="menu">
 4
 5	<target name="menu">
 6		<echo message="1 - update_cgi_link" />
 7		<echo message="2 - update_htaccess" />
 8		<echo message="0 - quit" />
 9		<input message="Your choice :" variable="answer" defaultvalue="0" validargs="1,2,0" answer_required="true" />
10		<geant target="update_cgi_link" if="$answer=1" />
11		<geant target="update_htaccess" if="$answer=2" />
12	</target>
13
14	<target name="update_cgi_link">
15		<echo message="Update CGI link" />
16		<exec executable="junction CGI ..\EIFGENs\rest_sample_cgi\W_code" accept_errors="true" exit_code_variable="return_code" dir="$cwd" />
17	</target>
18
19	<target name="update_htaccess">
20		<replace file="htaccess" to_file=".htaccess" token="##SAMPLE-CGI-DIR##" replace="$cwd/../EIFGENs/rest_sample_cgi/W_code" flags="g" />
21		<replace file=".htaccess" to_file=".htaccess" token="\" replace="/" flags="g" />
22	</target>
23
24</project>