Project

Profile

Help

Revision a31dd97a

Added by Norman Tovey-Walsh 8 months ago

Attempting to get samples working

View differences:

build.gradle
31 31
  asmDotNet.extendsFrom(implementation)
32 32
  documentation.extendsFrom(implementation)
33 33
  jeldoclet.extendsFrom(implementation)
34
  samples.extendsFrom(implementation)
34 35
}
35 36

  
36 37
// Set saxonLicenseDir in gradle.properties, or from the
......
124 125
    // I don't really understand why this has to be done explicitly...
125 126
    files("${System.getProperty('java.home')}/../lib/tools.jar")
126 127
  )
128
  samples (
129
    [group: 'javax.servlet', name: 'servlet-api', version: '2.5']
130
  )
127 131
}
128 132

  
129 133
javadoc {
......
274 278
apply from: "build-n.gradle"
275 279
apply from: "build-c.gradle"
276 280
apply from: "build-doc.gradle"
281
apply from: "test-suites.gradle"
277 282

  
278 283
def pathExists(pathname) {
279 284
  // Returns true iff pathame is an existing file or directory
......
576 581

  
577 582
// ============================================================
578 583

  
579
task hej_sampleConfig(
580
  type: JavaExec,
581
  description: "Construct the configuration file XSD"
582
) {
583
  inputs.files fileTree(dir: "${projectDir}/tools/featureKeys")
584
  inputs.files "${projectDir}/src/samples/config/config-raw.xsd"
585
  outputs.file "${projectDir}/src/samples/config/config.xsd"
586
  classpath = configurations.preprocessor
587
  main = "net.sf.saxon.Transform"
588
  args "${projectDir}/tools/featureKeys/FeatureKeys.xml",
589
    "-xsl:${projectDir}/tools/featureKeys/FeatureKeysToSchema.xsl",
590
    "-o:${projectDir}/src/samples/config/config.xsd",
591
    "FeatureKeys=FeatureKeys.xml",
592
    "AdditionalFeatures=AdditionalFeatures.xml",
593
    "ConfigSchema=${projectDir}/src/samples/config/config-raw.xsd"
594
}
595

  
596
// There's no real dependency here, but I'm not sure how the
597
// samples directory should be integrated into the build.
598 584
task hej_featureKeys(
599 585
  type: JavaExec,
600
  dependsOn: ["hej_sampleConfig"],
601 586
  description: "Construct the feature keys for HE"
602 587
) {
603 588
  inputs.files fileTree(dir: "${projectDir}/tools/featureKeys")

Also available in: Unified diff