}
}
}
// Implementation
PathOrigin origin = compType.getOrigin();
String srcImpl = compType.getImplementationPath();
if ( StringUtils.isNotEmpty( srcImpl ) ) {
try {
componentScripts.registerFileDependency( compType.getName(), compType.getVersion(), origin, srcImpl );
} catch ( Exception e ) {
logger.error( "Failed to register dependency '" + srcImpl + "'" );
}
}
}
//read resources/include.properties
Properties extraProps = new Properties();
try {
InputStream in = null;
try {
in = CdeEnvironment.getPluginSystemReader().getFileInputStream( EXTRA_INCLUDES_PROP );
extraProps.load( in );
} finally {
IOUtils.closeQuietly( in );
}
PathOrigin origin = new StaticSystemOrigin( "" );
DependenciesPackage scripts = depMgr.getPackage( StdPackages.COMPONENT_DEF_SCRIPTS );
if ( extraProps.containsKey( "scripts" ) ) {
for ( String path : extraProps.get( "scripts" ).toString().split( "," ) ) {
if ( !path.isEmpty() ) {