1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<project default =" all" basedir =" ." name =" run-cfml" >
3
3
<macrodef name =" echots" >
4
- <attribute name =" message" />
4
+ <attribute name =" message" />
5
5
<sequential >
6
6
<local name =" timestamp" />
7
7
<tstamp >
11
11
</sequential >
12
12
</macrodef >
13
13
<target name =" all" >
14
- <echots message =" Lucee Starting" />
14
+ <echots message =" Lucee Starting" />
15
15
<script language =" CFML" >
16
16
<![CDATA[
17
17
systemOutput( "---------- #DateTimeFormat(now(),'yyyy-mm-dd HH:nn:ss')# - Lucee Started ----------", true);
18
18
systemOutput( "#server.lucee.version#", true );
19
19
20
- request.adminPassword="admin";
20
+ param name="adminPassword" default="admin";
21
+ request.adminPassword = adminPassword;
21
22
request.errorThrown = false;
22
23
23
24
try {
25
+ param name="setAdminPassword" default="true";
26
+ if ( setAdminPassword ) {
27
+
28
+ // set a password for the admin
29
+ try {
30
+ admin
31
+ action="updatePassword"
32
+ type="web"
33
+ oldPassword=""
34
+ newPassword="#request.adminPassword#";
35
+ systemOutput( "Set Web admin password", true );
36
+ }
37
+ catch(e){
38
+ systemOutput( e.message, true ); // may exist from previous execution
39
+ }
24
40
25
- // set a password for the admin
26
- try {
27
- admin
28
- action="updatePassword"
29
- type="web"
30
- oldPassword=""
31
- newPassword="#request.adminPassword#";
32
- systemOutput( "Set Web admin password", true );
33
- }
34
- catch(e){
35
- systemOutput( e.message, true ); // may exist from previous execution
36
- }
37
-
38
- try {
39
- admin
40
- action="updatePassword"
41
- type="server"
42
- oldPassword=""
43
- newPassword="#request.adminPassword#";
44
- systemOutput( "Set Server admin password", true );
45
- }
46
- catch(e){
47
- systemOutput( e.message, true ); // may exist from previous execution
41
+ try {
42
+ admin
43
+ action="updatePassword"
44
+ type="server"
45
+ oldPassword=""
46
+ newPassword="#request.adminPassword#";
47
+ systemOutput( "Set Server admin password", true );
48
+ }
49
+ catch(e){
50
+ systemOutput( e.message, true ); // may exist from previous execution
51
+ }
48
52
}
49
53
50
-
51
54
admin
52
55
action="updateMapping"
53
56
type="web"
59
62
primary="physical"
60
63
trusted="no";
61
64
62
- admin
63
- action="getMappings"
64
- type="web"
65
- password="#request.adminPassword#"
66
- returnVariable="mappings";
67
-
68
65
systemOutput( "-------------- Mappings --------------", true );
69
- loop query="mappings" {
70
- systemOutput("#mappings.virtual# #chr( 9 )# #mappings.strPhysical# "
71
- & ( len( mappings.strArchive ) ? "[#mappings.strArchive#] " : "" )
72
- & ( len( mappings.inspect ) ? "(#mappings.inspect#)" : ""), true );
66
+ try {
67
+ admin
68
+ action="getMappings"
69
+ type="web"
70
+ password="#request.adminPassword#"
71
+ returnVariable="mappings";
72
+
73
+ loop query="mappings" {
74
+ systemOutput("#mappings.virtual# #chr( 9 )# #mappings.strPhysical# "
75
+ & ( len( mappings.strArchive ) ? "[#mappings.strArchive#] " : "" )
76
+ & ( len( mappings.inspect ) ? "(#mappings.inspect#)" : ""), true );
77
+ }
78
+
79
+ } catch( e ){
80
+ systemOutput( e.message, true );
73
81
}
82
+ systemOutput( "ExpandPath( '/' ) #chr(9)# #ExpandPath( '/' )#" , true );
74
83
75
84
param name="extensionDir" default="";
76
85
if ( len( extensionDir) ){
195
204
}
196
205
]]>
197
206
</script >
198
- <echots message =" Lucee Stopping" />
207
+ <echots message =" Lucee Stopping" />
199
208
</target >
200
- </project >
209
+ </project >
0 commit comments