You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by GitBox <gi...@apache.org> on 2022/01/13 15:46:22 UTC

[GitHub] [daffodil-schema.g8] stevedlawrence commented on pull request #3: Add 'namespaced' property to support flat vs deep directory structure

stevedlawrence commented on pull request #3:
URL: https://github.com/apache/daffodil-schema.g8/pull/3#issuecomment-1012259303


   Note that the `$if(namespaced.truthy)$FOO$else$.$endif$` pattern says if the namespaced config property is true, then the directory should exist and its name should be FOO (which could also be a template variable). Otherwise, the directory should not exist and any child directories/files become children of the parent.
   
   I also find that it's a little easier to make sense of the new template directory names in tree form:
   ```
   src/main/g8/
   ├── $if(namespaced.truthy)$src$else$.$endif$
   │   ├── $if(namespaced.truthy)$main$else$src$endif$
   │   │   └── $if(namespaced.truthy)$resources$else$.$endif$
   │   │       └── $if(namespaced.truthy)$$package$$else$.$endif$
   │   │           └── $if(namespaced.truthy)$$name__camel$$else$.$endif$
   │   │               └── $if(namespaced.truthy)$xsd$else$.$endif$
   │   │                   └── $name__camel$.dfdl.xsd
   │   └── test
   │       ├── $if(namespaced.truthy)$resources$else$.$endif$
   │       │   └── $if(namespaced.truthy)$$package$$else$.$endif$
   │       │       └── $if(namespaced.truthy)$$name__camel$$else$.$endif$
   │       │           ├── Test$name__Camel$.tdml
   │       │           ├── data
   │       │           │   └── test_01.$name__camel$
   │       │           └── infosets
   │       │               └── test_01.$name__camel$.xml
   │       └── $if(namespaced.truthy)$scala$else$.$endif$
   │           └── $if(namespaced.truthy)$$package$$else$.$endif$
   │               └── $if(namespaced.truthy)$$name__camel$$else$.$endif$
   │                   └── Test$name__Camel$.scala
   ├── README.md
   ├── build.sbt
   ├── default.properties
   └── project
       └── build.properties
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org