コード例 #1
0
ファイル: DexToJni.cs プロジェクト: rLinks234/nUtility
        private int PortNumber = 32799; // This is by default. Not sure if I want to allow this to be changed or not just yet.

        public DexToJni(ref ICommandCommunicator communicator, ref ProjectEnvironmentContext context, ref ProjectEnvironment.ProjectModule module, ref List<string> filesAndDirs, string additionalArgs = "", bool printInfo = true)
            : base(ref communicator, ref context)
        {
            CommandAdditionalArgs = additionalArgs.Trim();
            PrintInfoInGlobalMessageBox = printInfo;
            ProjectModuleContext = module;
            ProjectEnvironmentInstance = module.Project;
            InputFilesAndDirs = filesAndDirs;
        }
コード例 #2
0
 public EnvironmentInfo()
 {
     AuditProjectEnvironment        = new ProjectEnvironment();
     AuditQueriesProjectEnvironment = new ProjectEnvironment();
     CommonProjectEnvironment       = new ProjectEnvironment();
     DstrViewerProjectEnvironment   = new ProjectEnvironment();
     PawnProjectEnvironment         = new ProjectEnvironment();
     SupportProjectEnvironment      = new ProjectEnvironment();
     DeploymentType = DeploymentType.Unknown;
 }
コード例 #3
0
ファイル: NdkBuild.cs プロジェクト: rLinks234/nUtility
        public NdkBuild(ref ICommandCommunicator communicator, ref ProjectEnvironmentContext context, ref ProjectEnvironment.ProjectModule module, bool useMake=true, string additionalArgs="", bool printInfo=true) : base(ref communicator, ref context)
        {
            UseMake         = useMake;
            CommandAdditionalArgs  = additionalArgs;

            PrintInfoInGlobalMessageBox = printInfo;
            ProjectModuleContext        = module;
            ProjectEnvironmentInstance   = module.Project;

            if (OSUtils.IsWindows())
            {
                NdkBuildExec = Path.Combine(context.NdkEnv.RootDirectory, "ndk-build.cmd");
            }
            else
            {
                NdkBuildExec = Path.Combine(context.NdkEnv.RootDirectory, "ndk-build");
            }

            if (!string.IsNullOrEmpty(NUtilityGlobalContext.ExtraCompilerDefine))
            {
                Environment.SetEnvironmentVariable("NUTILITY_DEFINES", NUtilityGlobalContext.ExtraCompilerDefine);
            }
        }
コード例 #4
0
ファイル: XmlParser.cs プロジェクト: gaui/Deployer
        public static Project ParseProject(string filename, Settings settings, Argument arg)
        {
            Project project = new Project();

            // Retrieve project settings
            XmlDocument doc_project = new XmlDocument();

            doc_project.Load(filename);

            // Retrieve project node
            XmlNode node_project = doc_project.DocumentElement.SelectSingleNode("/project");

            if (node_project == null)
            {
                throw new XmlNodeException("Project info");
            }

            // Retrieve project name node
            XmlNode node_projectName = node_project["name"];

            if (node_projectName == null)
            {
                throw new XmlNodeException("Project name info");
            }

            project.ProjectName = node_project["name"].InnerText;

            // Retrieve project type node
            XmlNode node_projectType = node_project["type"];

            if (node_projectType == null)
            {
                throw new XmlNodeException("Project type info");
            }

            project.ProjectType = node_project["type"].InnerText;

            // Retrieve project path node
            XmlNode node_projectPath = node_project["path"];

            if (node_projectPath == null)
            {
                throw new XmlNodeException("Project path info");
            }

            foreach (var env in arg.DeploymentEnvironment)
            {
                ProjectEnvironment pEnv = new ProjectEnvironment();

                pEnv.ProjectPath = settings.ProjectBase[env] + "\\" + node_projectPath.InnerText;

                if (!Directory.Exists(pEnv.ProjectPath))
                {
                    throw new FileNotFoundException("Project path doesn't exist!");
                }

                // Retrieve deployment environment node
                XmlNode node_environment = node_project["environment"][env];
                if (node_environment == null)
                {
                    throw new XmlNodeException("Deployment environment");
                }

                // Retrieve deployment environment path node
                XmlNode node_environmentPath = node_environment["path"];
                if (node_environmentPath == null)
                {
                    throw new XmlNodeException("Deployment environment path info");
                }

                pEnv.DeploymentPath = node_environmentPath.InnerText;

                // We only need the profile info if it's a .NET project
                if (project.ProjectType == "net")
                {
                    // Retrieve deployment environment profile node
                    XmlNode node_environmentProfile = node_environment["profile"];
                    if (node_environmentProfile == null)
                    {
                        throw new XmlNodeException("Deployment environment profile info");
                    }

                    pEnv.DeploymentProfile = node_environmentProfile.InnerText;
                }

                project.Environment.Add(env, pEnv);
            }

            return(project);
        }