Package npanday.executable.compiler

Examples of npanday.executable.compiler.CompilerCapability


            {
                if ( !( executableCapability instanceof CompilerCapability ) )
                {
                    return true;
                }
                CompilerCapability capability = (CompilerCapability) executableCapability;
                return language.toLowerCase().trim().equals( capability.getLanguage().toLowerCase().trim() );
            }

            public String toString()
            {
                return "ExecutableMatchPolicy[language: '" + language + "']";
View Full Code Here


         *
         * @return a default instance of the executable capability
         */
        public static ExecutableCapability createDefaultExecutableCapability()
        {
            return new CompilerCapability()
            {

                private Vendor vendor;

                private String language;
View Full Code Here

            String defaultAssemblyPath = plugin.getDefaultAssemblyPath();

            List platforms = plugin.getPlatforms();
            for ( Iterator j = platforms.iterator(); j.hasNext(); )
            {
                CompilerCapability platformCapability =
                    (CompilerCapability) CompilerCapability.Factory.createDefaultExecutableCapability();
                Platform platform = (Platform) j.next();
                String os = platform.getOperatingSystem();

                platformCapability.setLanguage( language );
                platformCapability.setOperatingSystem( os );
                platformCapability.setPluginClassName( pluginClassName );
                platformCapability.setExecutable( executable );
                platformCapability.setIdentifier( identifier );
                platformCapability.setFrameworkVersions( frameworkVersions );
                platformCapability.setProfile( profile );
                platformCapability.setAssemblyPath( defaultAssemblyPath );
                String arch = platform.getArchitecture();
                CommandFilter filter = plugin.getCommandFilter();
                platformCapability.setCoreAssemblies( coreAssemblies );

                platformCapability.setNetDependencyId( plugin.getNetDependencyId());

                List<String> includes = ( filter != null ) ? filter.getIncludes() : new ArrayList<String>();
                List<String> excludes = ( filter != null ) ? filter.getExcludes() : new ArrayList<String>();
                platformCapability.setCommandCapability(
                    CommandCapability.Factory.createDefaultCommandCapability( includes, excludes ) );
                if ( arch != null )
                {
                    platformCapability.setArchitecture( arch );
                }
                if ( compilerVendor.trim().equalsIgnoreCase( "microsoft" ) )
                {
                    platformCapability.setVendor( Vendor.MICROSOFT );
                }
                else if ( compilerVendor.trim().equalsIgnoreCase( "mono" ) )
                {
                    platformCapability.setVendor( Vendor.MONO );
                }
                else if ( compilerVendor.trim().equalsIgnoreCase( "dotgnu" ) )
                {
                    platformCapability.setVendor( Vendor.DOTGNU );
                }
                else
                {
                    System.out.println( "NPANDAY-062-001: Unknown Vendor, skipping: Name = " + compilerVendor );
                    continue;
View Full Code Here

TOP

Related Classes of npanday.executable.compiler.CompilerCapability

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.