import org.tizen.common.util.ReflectionUtil;
import org.tizen.common.util.StringUtil;
import org.tizen.common.verrari.IModelProvider;
+import org.tizen.common.verrari.ITemplate;
import org.tizen.common.verrari.ITemplateEngine;
import org.tizen.common.verrari.Storage;
import org.tizen.common.verrari.Template;
try {
pretemplate( models );
-
+
// copy
for ( final String name : this.copyNames )
{
logger.trace( "Copy[{}] start", name );
final String target = nvl( this.mapper.map( (OSChecker.isWindows() ? name.replace( System.getProperty("file.separator"), "/" ) : name) ), name );
+ ITemplate template = engine.getTemplateProvider().getTemplate( name );
+ if ( template == null ) {
+ continue;
+ }
+
InputStream in = null;
OutputStream out = null;
try
{
- in = engine.getTemplateProvider().getTemplate( name ).open();
+ in = template.open();
out = storage.getTarget( target );
ExecutionContext.getCurrentContext().getPrompter().notify( target + " created" );
IOUtil.redirect( in , out );
-
}
finally
{
{
context.remove();
logger.info( "End template process..." );
- System.out.println("End template process..." );
}
}