summaryrefslogtreecommitdiffstats
path: root/cpp/sca/antscripts/system.xml
blob: ba718ec76ac0962842839b7f7a1f665b989a83bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
<?xml version="1.0" encoding="UTF-8"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
     http://www.apache.org/licenses/LICENSE-2.0
     
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
-->
<project name="system-import">

  <property file="${basedir}/antscripts/platform.properties"/>
  <property environment="env"/>

  <!-- These 3 lines pull in antcontrib and cctasks -->
  <taskdef resource="net/sf/antcontrib/antlib.xml"/>
  <taskdef resource="cpptasks.tasks"/>
  <typedef resource="cpptasks.types"/>

  <!--
     Configure the tuscanySDO.install.dir, sdo.include.dir, and sdo.lib.dir
     Take the override value from platform.properties if set
     Else take it from the env var TUSCANY_SDOCPP
     Else fail since we cant compile without it
  -->
  <if>
    <and>
      <isset property="platform.tuscanySDO.install.dir"/>
      <length string="${platform.tuscanySDO.install.dir}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="tuscanySDO.install.dir" location="${platform.tuscanySDO.install.dir}"/>
    </then>
    <elseif>
      <isset property="env.TUSCANY_SDOCPP"/>
      <then>
        <property name="tuscanySDO.install.dir" location="${env.TUSCANY_SDOCPP}"/>
      </then>
    </elseif>
    <else>
      <fail message="Unable to find SDO installation, must be set by TUSCANY_SDOCPP or in platform.properties file"/>
    </else>
  </if>
  <property name="sdo.include.dir" location="${tuscanySDO.install.dir}/include"/>
  <property name="sdo.lib.dir"     location="${tuscanySDO.install.dir}/lib"/>

  <!--
     Configure the SDO impl library name which allows for sdo impls other than tuscanySDO
     Take the override value from platform.properties if set
  -->
  <if>
    <and>
      <isset property="platform.sdo.impl.library.name"/>
      <length string="${platform.sdo.impl.library.name}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="sdo.impl.library.name" value="${platform.sdo.impl.library.name}"/>
    </then>
    <else>
      <property name="sdo.impl.library.name" value="tuscany_sdo"/>
    </else>
  </if>

  <!--
     Configure the tuscanySCA.root.dir
     Take the override value from platform.properties if set
  -->
  <if>
    <and>
      <isset property="platform.tuscanySCA.root.dir"/>
      <length string="${platform.tuscanySCA.root.dir}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="tuscanySCA.root.dir" location="${platform.tuscanySCA.root.dir}"/>
    </then>
    <else>
      <property name="tuscanySCA.root.dir" location="."/>
    </else>
  </if>

  <property name="tuscanySCA.root.src.dir" location="${tuscanySCA.root.dir}/runtime"/>

  <!--
     Configure the tuscanySCA.install.dir
     Take the override value from platform.properties if set
     Else take it from the env var TUSCANY_SCACPP
     Else use a default of ${tuscanySCA.root.dir}/deploy
  -->
  <if>
    <and>
      <isset property="platform.tuscanySCA.install.dir"/>
      <length string="${platform.tuscanySCA.install.dir}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="tuscanySCA.install.dir" location="${platform.tuscanySCA.install.dir}"/>
    </then>
    <elseif>
      <isset property="env.TUSCANY_SCACPP"/>
      <then>
        <property name="tuscanySCA.install.dir" location="${env.TUSCANY_SCACPP}"/>
      </then>
    </elseif>
    <else>
      <property name="tuscanySCA.install.dir" location="${tuscanySCA.root.dir}/deploy"/>
    </else>
  </if>

  <!--
     Configure the version for all tuscanySCA libraries
     If on windows, set it to empty
     Else take the override value from platform.properties if set
     Else default it to "0.0.0"
  -->
  <if>
    <os family="windows"/>
    <then>
      <property name="tuscanySCA.library.version" value=""/>
    </then>
    <elseif>
      <and>
        <isset property="platform.tuscanySCA.library.version"/>
        <length string="${platform.tuscanySCA.library.version}" when="greater" length="0" trim="true"/>
      </and>
      <then>
        <property name="tuscanySCA.library.version" value="${platform.tuscanySCA.library.version}"/>
      </then>
    </elseif>
    <else>
      <property name="tuscanySCA.library.version" value=".0.0.0"/>
    </else>
  </if>

  <!--
     Configure ${enable_ws} and ${axis2c.home.dir}, which is needed to compile the ws extension
     Take the override value from platform.properties if set
     Else take it from the env var AXIS2C_HOME
  -->
  <target name="check.ws">
  <if>
    <and>
      <isset property="platform.axis2c.home.dir"/>
      <length string="${platform.axis2c.home.dir}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="enable_ws" value="true"/>
      <property name="axis2c.home.dir" location="${platform.axis2c.home.dir}"/>
    </then>
    <elseif>
      <isset property="env.AXIS2C_HOME"/>
      <then>
        <property name="enable_ws" value="true"/>
        <property name="axis2c.home.dir" location="${env.AXIS2C_HOME}"/>
      </then>
    </elseif>
    <else>
      <echo message="TuscanySCA ws extension is not enabled" level="warning"/>
    </else>
  </if>
  </target>

  <!--
     Configure ${enable_python} and related python properties, which are needed
     to compile the python extension
     Take the override value from platform.properties if set
     Else check env vars PYTHON_LIB, PYTHON_INCLUDE, and PYTHON_VERSION
  -->
  <target name="check.python">
  <if>
    <and>
      <isset property="platform.python.version"/>
      <isset property="platform.python.include.dir"/>
      <isset property="platform.python.lib.dir"/>
      <length string="${platform.python.version}" when="greater" length="0" trim="true"/>
      <length string="${platform.python.include.dir}" when="greater" length="0" trim="true"/>
      <length string="${platform.python.lib.dir}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="enable_python" value="true"/>
      <property name="python.lib.dir"     location="${platform.python.lib.dir}"/>
      <property name="python.include.dir" location="${platform.python.include.dir}"/>
      <property name="python.version"     value="${platform.python.version}"/>
    </then>
    <elseif>
      <and>
        <isset property="env.PYTHON_LIB"/>
        <isset property="env.PYTHON_INCLUDE"/>
        <isset property="env.PYTHON_VERSION"/>
      </and>
      <then>
        <property name="enable_python" value="true"/>
        <property name="python.lib.dir"     location="${env.PYTHON_LIB}"/>
        <property name="python.include.dir" location="${env.PYTHON_INCLUDE}"/>
        <property name="python.version"     value="${env.PYTHON_VERSION}"/>
      </then>
    </elseif>
    <else>
      <echo message="TuscanySCA python extension is not enabled" level="warning"/>
    </else>
  </if>
  </target>

  <!--
     Configure ${enable_ruby} and related ruby properties, which are needed
     to compile the ruby extension
     Take the override value from platform.properties if set
     Else check env vars RUBY_LIB and RUBY_INCLUDE
  -->
  <target name="check.ruby">
  <if>
    <and>
      <isset property="platform.ruby.include.dir"/>
      <isset property="platform.ruby.lib.dir"/>
      <length string="${platform.ruby.include.dir}" when="greater" length="0" trim="true"/>
      <length string="${platform.ruby.lib.dir}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="enable_ruby" value="true"/>
      <property name="ruby.lib.dir"     location="${platform.ruby.lib.dir}"/>
      <property name="ruby.include.dir" location="${platform.ruby.include.dir}"/>
    </then>
    <elseif>
      <and>
        <isset property="env.RUBY_LIB"/>
        <isset property="env.RUBY_INCLUDE"/>
      </and>
      <then>
        <property name="enable_ruby" value="true"/>
        <property name="ruby.lib.dir"     location="${env.RUBY_LIB}"/>
        <property name="ruby.include.dir" location="${env.RUBY_INCLUDE}"/>
      </then>
    </elseif>
    <else>
      <echo message="TuscanySCA ruby extension is not enabled" level="warning"/>
    </else>
  </if>
  </target>

  <!--
     Configure ${enable_rest} and related ruby properties, which are needed
     to compile the rest extension
     Take the override value from platform.properties if set
     Else check env vars CURL_LIB, CURL_INCLUDE, HTTPD_INCLUDE, and APR_INCLUDE
  -->
  <target name="check.rest">
  <if>
    <and>
      <isset property="platform.rest.include.dir"/>
      <isset property="platform.rest.lib.dir"/>
      <length string="${platform.rest.include.dir}" when="greater" length="0" trim="true"/>
      <length string="${platform.rest.lib.dir}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="enable_rest" value="true"/>
      <property name="rest.curl.lib.dir"       location="${platform.rest.curl.lib.dir}"/>
      <property name="rest.curl.include.dir"   location="${platform.rest.curl.include.dir}"/>
      <property name="rest.httpd.include.dir"  location="${platform.rest.httpd.include.dir}"/>
      <property name="rest.apr.include.dir"    location="${platform.rest.apr.include.dir}"/>
    </then>
    <elseif>
      <and>
        <isset property="env.CURL_LIB"/>
        <isset property="env.CURL_INCLUDE"/>
        <isset property="env.HTTPD_INCLUDE"/>
        <isset property="env.APR_INCLUDE"/>
      </and>
      <then>
        <property name="enable_rest" value="true"/>
        <property name="rest.curl.lib.dir"       location="${env.CURL_LIB}"/>
        <property name="rest.curl.include.dir"   location="${env.CURL_INCLUDE}"/>
        <property name="rest.httpd.include.dir"  location="${env.HTTPD_INCLUDE}"/>
        <property name="rest.apr.include.dir"    location="${env.APR_INCLUDE}"/>
      </then>
    </elseif>
    <else>
      <echo message="TuscanySCA rest extension is not enabled" level="warning"/>
    </else>
  </if>
  </target>

  <!--
     Configure ${enable_php} and related php properties, which are needed
     to compile the php extension
     Take the override value from platform.properties if set
     Else check env vars CURL_LIB, CURL_INCLUDE, HTTPD_INCLUDE, and APR_INCLUDE
  -->
  <target name="check.php">
  <if>
    <and>
      <isset property="platform.php.include.dir"/>
      <isset property="platform.php.lib.dir"/>
      <isset property="platform.php.sca.sdo.include.dir"/>
      <isset property="platform.php.sca.sdo.lib.dir"/>
      <length string="${platform.php.include.dir}" when="greater" length="0" trim="true"/>
      <length string="${platform.php.lib.dir}" when="greater" length="0" trim="true"/>
      <length string="${platform.php.sca.sdo.include.dir}" when="greater" length="0" trim="true"/>
      <length string="${platform.php.sca.sdo.lib.dir}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="enable_php" value="true"/>
      <property name="php.include.dir"          location="${platform.php.include.dir}"/>
      <property name="php.lib.dir"              location="${platform.php.lib.dir}"/>
      <property name="php.sca.sdo.include.dir"  location="${platform.php.sca.sdo.include.dir}"/>
      <property name="php.sca.sdo.lib.dir"      location="${platform.php.sca.sdo.lib.dir}"/>
    </then>
    <elseif>
      <and>
        <isset property="env.PHP_LIB"/>
        <isset property="env.PHP_INCLUDE"/>
        <isset property="env.PHP_SCA_SDO_LIB"/>
        <isset property="env.PHP_SCA_SDO_INCLUDE"/>
      </and>
      <then>
        <property name="enable_php" value="true"/>
        <property name="php.include.dir"          location="${env.PHP_INCLUDE}"/>
        <property name="php.lib.dir"              location="${env.PHP_LIB}"/>
        <property name="php.sca.sdo.include.dir"  location="${env.PHP_SCA_SDO_INCLUDE}"/>
        <property name="php.sca.sdo.lib.dir"      location="${env.PHP_SCA_SDO_LIB}"/>
      </then>
    </elseif>
    <else>
      <echo message="TuscanySCA php extension is not enabled" level="warning"/>
    </else>
  </if>
  </target>

  <!--
     Configure the debug.compile flag
     Try looking first on the command line
     Then take the override value from platform.properties if set
     Else its false
  -->
  <if>
    <isset property="debug"/>
    <then>
      <!-- Tests if its set on the ant command line "ant -Ddebug=true" -->
      <if>
        <istrue value="${debug}"/>
        <then>
          <property name="debug.compile" value="true"/>
        </then>
      </if>
    </then>
    <elseif>
      <and>
        <isset property="platform.debug.compile"/>
        <istrue value="${platform.debug.compile}"/>
        <length string="${platform.debug.compile}" when="greater" length="0" trim="true"/>
      </and>
    <then>
      <property name="debug.compile" value="true"/>
    </then>
  </elseif>
  </if>
  <property name="debug.compile" value="false"/>

  <!--
     Configure the compiler.name
     Take the override value from platform.properties if set
     Else set it based on the OS
  -->
  <if>
    <and>
      <isset property="platform.compiler.name"/>
      <length string="${platform.compiler.name}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="compiler.name" value="${platform.compiler.name}"/>
    </then>
    <else>
      <condition property="compiler.name" value="msvc8">
        <os family="windows"/>
      </condition>

      <condition property="compiler.name" value="g++">
        <os family="unix"/>
       </condition>

      <condition property="compiler.name" value="mac_g++">
        <os family="mac"/>
      </condition>
    </else>
  </if>

  <!--
     Configure the lib.ext
     Take the override value from platform.properties if set
     Else set it based on the OS
  -->
  <if>
    <and>
      <isset property="platform.lib.ext"/>
      <length string="${platform.lib.ext}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="lib.ext" value="${platform.lib.ext}"/>
    </then>
    <else>
      <condition property="lib.ext" value=".lib">
        <os family="windows"/>
      </condition>

      <condition property="lib.ext" value=".dylib">
        <os family="mac"/>
      </condition>

      <condition property="lib.ext" value=".so">
        <os family="unix"/>
      </condition>
    </else>
  </if>

  <!--
     Configure the dll.ext, used for windows only
     Take the override value from platform.properties if set
     Else set it based on the OS
  -->
  <if>
    <and>
      <isset property="platform.dll.ext"/>
      <length string="${platform.dll.ext}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="dll.ext" value="${platform.dll.ext}"/>
    </then>
    <else>
      <condition property="dll.ext" value=".dll">
        <os family="windows"/>
      </condition>

      <property name="dll.ext" value=""/>

    </else>
  </if>

  <!--
     Configure the lib.prefix
     Take the override value from platform.properties if set
     Else set it based on the OS
  -->
  <if>
    <and>
      <isset property="platform.lib.prefix"/>
      <length string="${platform.lib.prefix}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="lib.prefix" value="${platform.lib.prefix}"/>
    </then>
    <else>
      <condition property="lib.prefix" value="">
        <os family="windows"/>
      </condition>

      <condition property="lib.prefix" value="lib">
        <or>
          <os family="unix"/>
          <os family="mac"/>
        </or>
      </condition>
    </else>
  </if>


  <!--
     Configure the object.ext
     Take the override value from platform.properties if set
     Else set it based on the OS
  -->
  <if>
    <and>
      <isset property="platform.object.ext"/>
      <length string="${platform.object.ext}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="object.ext" value="${platform.object.ext}"/>
    </then>
    <else>
      <condition property="object.ext" value=".obj">
        <os family="windows"/>
      </condition>

      <condition property="object.ext" value=".o">
        <or>
          <os family="unix"/>
          <os family="mac"/>
        </or>
      </condition>
    </else>
  </if>


  <!--
     Configure the exe.ext
     Take the override value from platform.properties if set
     Else set it based on the OS
  -->
  <if>
    <and>
      <isset property="platform.exe.ext"/>
      <length string="${platform.exe.ext}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="exe.ext" value="${platform.exe.ext}"/>
    </then>
    <else>
      <condition property="exe.ext" value=".exe">
        <os family="windows"/>
      </condition>

      <condition property="exe.ext" value="">
        <or>
          <os family="unix"/>
          <os family="mac"/>
        </or>
      </condition>
    </else>
  </if>


  <!--
     Configure the script.ext
     Take the override value from platform.properties if set
     Else set it based on the OS
  -->
  <if>
    <and>
      <isset property="platform.script.ext"/>
      <length string="${platform.script.ext}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="script.ext" value="${platform.script.ext}"/>
    </then>
    <else>
      <condition property="script.ext" value=".bat">
        <os family="windows"/>
      </condition>

      <condition property="script.ext" value=".sh">
        <or>
          <os family="unix"/>
          <os family="mac"/>
        </or>
      </condition>
    </else>
  </if>

  <condition property="windows" value="true">
    <os family="windows"/>
  </condition>

  <condition property="mac" value="true">
    <os family="mac"/>
  </condition>

  <condition property="unix" value="true">
    <os family="unix"/>
  </condition>

  <!--
     Base compiler definition
    -->
  <compiler id="Tuscany-BaseCompiler" multithreaded="true" exceptions="true" rtti="true">
    <includepath path="${sdo.include.dir}"/>
    <includepath path="${tuscanySCA.root.src.dir}"/>
    <includepath path="${tuscanySCA.root.src.dir}/core/src"/>
  </compiler>

  <!--
     Specific compiler definitions
     The compilerarg location functionality completely omits the arg: antcontrib bug 1794857
    -->
  
    <!-- MSVC compilers for windows -->
  <compiler id="msvc-Compiler" extends="Tuscany-BaseCompiler" name="msvc">
    <defineset define="WIN32,_CRT_SECURE_NO_DEPRECATE,_USRDLL,_WINDOWS"/>
  </compiler>

    <!-- The standard msvc ant contrib cc task compiler doesnt work so well,
         so we made our own until the bugs are resolved -->
  <!--compiler id="msvc8-Compiler" extends="Tuscany-BaseCompiler" name="msvc"-->
  <compiler id="msvc8-Compiler"
            extends="Tuscany-BaseCompiler"
            classname="tuscany.antCompilers.TuscanyMSVC8DevStudioCCompiler">
    <defineset define="WIN32,_CRT_SECURE_NO_DEPRECATE,_USRDLL,_WINDOWS"/>
  </compiler>

     <!-- g++ compiler for most Unix platforms -->
  <compiler id="g++-Compiler" extends="Tuscany-BaseCompiler" name="g++"/>
 
    <!-- g++ 32 bit compiler for 64 bit platforms
         Used for cross compilation with the -m32 flag -->
  <compiler id="g++m32-Compiler" extends="Tuscany-BaseCompiler" name="g++">
    <compilerarg value="-m32"/>
  </compiler>

    <!-- g++ compiler for Apple mac -->
  <compiler id="mac_g++-Compiler" extends="Tuscany-BaseCompiler" name="g++">
    <defineset define="IS_DARWIN"/>
  </compiler>

  <!--
     Specific linker definitions
     The linker extends funcionality isnt working correctly: antcontrib bug 1794867
     Specifically, the syslibset for dl was not working on Linux
    -->
  <linker id="msvc-Linker" name="msvc">
    <syslibset libs="kernel32,user32,ws2_32"/>
  </linker>

  <linker id="msvc8-Linker" name="msvc">
    <syslibset libs="kernel32,user32,ws2_32"/>
  </linker>

  <linker id="g++-Linker" name="g++">
    <syslibset libs="dl"/>
  </linker>

  <linker id="g++m32-Linker" name="g++">
    <syslibset libs="dl"/>
    <linkerarg value="-m32"/>
  </linker>

  <linker id="mac_g++-Linker" name="g++">
    <syslibset libs="dl"/>
  </linker>

  <!--
    Setup the external definitions file, if there is one
  -->
  <if>
    <and>
      <isset property="platform.external.definitions.file"/>
      <length string="${platform.external.definitions.file}" when="greater" length="0" trim="true"/>
    </and>
    <then>
      <property name="external.definitions.file" value="${platform.external.definitions.file}"/>
      <import file="${external.definitions.file}"/>
    </then>
  </if>
  <property name="external.definitions.file" value=""/>

  <target name="display.system" depends="check.ws,check.python,check.php,check.ruby,check.rest">

    <!-- Tuscany paths, etc -->
    <echo message=" "/>
    <echo message="TuscanySCA paths"/>
    <echo message="  tuscanySCA.install.dir=      ${tuscanySCA.install.dir}"/>
    <echo message="  tuscanySCA.root.dir=         ${tuscanySCA.root.dir}"/>
    <echo message="  tuscanySCA.root.src.dir=     ${tuscanySCA.root.src.dir}"/>
    <echo message="  tuscanySCA.install.dir=      ${tuscanySCA.install.dir}"/>
    <echo message="  tuscanySCA.library.version=  '${tuscanySCA.library.version}'"/>
    <echo message="  tuscanySDO.install.dir=      ${tuscanySDO.install.dir}"/>

    <!-- compilers, libs, etc -->
    <echo message=" "/>
    <echo message="TuscanySCA compiler configuration"/>
    <echo message="  compiler.name=               '${compiler.name}'"/>
    <echo message="  debug.compile=               '${debug.compile}'"/>
    <echo message="  lib.ext=                     '${lib.ext}'"/>
    <echo message="  dll.ext=                     '${dll.ext}'"/>
    <echo message="  lib.prefix=                  '${lib.prefix}'"/>
    <echo message="  object.ext=                  '${object.ext}'"/>
    <echo message="  exe.ext=                     '${exe.ext}'"/>
    <echo message="  script.ext=                  '${script.ext}'"/>
    <echo message="  external.definitions.file=   '${external.definitions.file}'"/>
    <echo message="  sdo.impl.library.name=       '${sdo.impl.library.name}'"/>

    <!-- ws extention -->
    <if>
      <isset property="enable_ws"/>
      <then>
        <echo message=" "/>
        <echo message="TuscanySCA ws extension enabled"/>
        <echo message="  axis2c.home.dir=          ${axis2c.home.dir}"/>
      </then>
    </if>

    <!-- php extention -->
    <if>
      <isset property="enable_php"/>
      <then>
        <echo message=" "/>
        <echo message="TuscanySCA php extension enabled"/>
        <echo message="  php.lib.dir=              ${php.lib.dir}"/>
        <echo message="  php.include.dir=          ${php.include.dir}"/>
        <echo message="  php.sca.sdo.lib.dir=      ${php.sca.sdo.lib.dir}"/>
        <echo message="  php.sca.sdo.include.dir=  ${php.sca.sdo.include.dir}"/>
      </then>
    </if>

    <!-- python extention -->
    <if>
      <isset property="enable_python"/>
      <then>
        <echo message=" "/>
        <echo message="TuscanySCA python extension enabled"/>
        <echo message="  python.lib.dir=           ${python.lib.dir}"/>
        <echo message="  python.include.dir=       ${python.include.dir}"/>
        <echo message="  python.version=           ${python.version}"/>
      </then>
    </if>

    <!-- rest extention -->
    <if>
      <isset property="enable_rest"/>
      <then>
        <echo message=" "/>
        <echo message="TuscanySCA rest extension enabled"/>
        <echo message="  rest.curl.lib.dir=        ${rest.curl.lib.dir}"/>
        <echo message="  rest.curl.include.dir=    ${rest.curl.include.dir}"/>
        <echo message="  rest.httpd.include.dir=   ${rest.httpd.include.dir}"/>
        <echo message="  rest.apr.include.dir=     ${rest.apr.include.dir}"/>
      </then>
    </if>

    <!-- ruby extention -->
    <if>
      <isset property="enable_ruby"/>
      <then>
        <echo message=" "/>
        <echo message="TuscanySCA ruby extension enabled"/>
        <echo message="  ruby.lib.dir=             ${ruby.lib.dir}"/>
        <echo message="  ruby.include.dir=         ${ruby.include.dir}"/>
      </then>
    </if>

    <echo message=" "/>

  </target>

</project>