com.android.ide.common.process.ProcessExecutor Java Examples

The following examples show how to use com.android.ide.common.process.ProcessExecutor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AidlProcessor.java    From javaide with GNU General Public License v3.0 6 votes vote down vote up
public AidlProcessor(
        @NonNull String aidlExecutable,
        @NonNull String frameworkLocation,
        @NonNull List<File> importFolders,
        @NonNull File sourceOutputDir,
        @Nullable File parcelableOutputDir,
        @NonNull DependencyFileProcessor dependencyFileProcessor,
        @NonNull ProcessExecutor processExecutor,
        @NonNull ProcessOutputHandler processOutputHandler) {
    mAidlExecutable = aidlExecutable;
    mFrameworkLocation = frameworkLocation;
    mImportFolders = importFolders;
    mSourceOutputDir = sourceOutputDir;
    mParcelableOutputDir = parcelableOutputDir;
    mDependencyFileProcessor = dependencyFileProcessor;
    mProcessExecutor = processExecutor;
    mProcessOutputHandler = processOutputHandler;
}
 
Example #2
Source File: AndroidBuilder.java    From javaide with GNU General Public License v3.0 6 votes vote down vote up
/**
 * Creates an AndroidBuilder.
 * <p/>
 * <var>verboseExec</var> is needed on top of the ILogger due to remote exec tools not being
 * able to output info and verbose messages separately.
 *
 * @param createdBy   the createdBy String for the apk manifest.
 * @param logger      the Logger
 * @param verboseExec whether external tools are launched in verbose mode
 */
public AndroidBuilder(
        @NonNull String projectId,
        @Nullable String createdBy,
        @NonNull ProcessExecutor processExecutor,
        @NonNull JavaProcessExecutor javaProcessExecutor,
        @NonNull ErrorReporter errorReporter,
        @NonNull ILogger logger,
        boolean verboseExec) {
    mProjectId = checkNotNull(projectId);
    mCreatedBy = createdBy;
    mProcessExecutor = checkNotNull(processExecutor);
    mJavaProcessExecutor = checkNotNull(javaProcessExecutor);
    mErrorReporter = checkNotNull(errorReporter);
    mLogger = checkNotNull(logger);
    mVerboseExec = verboseExec;
}
 
Example #3
Source File: AtlasAapt.java    From atlas with Apache License 2.0 5 votes vote down vote up
/**
 * Creates a new entry point to the original {@code aapt}.
 *
 * @param processExecutor      the executor for external processes
 * @param processOutputHandler the handler to process the executed process' output
 * @param buildToolInfo        the build tools to use
 * @param logger               logger to use
 * @param processMode          the process mode to run {@code aapt} on
 * @param cruncherProcesses    if using build tools that support crunching processes, how many
 *                             processes to use; if set to {@code 0}, the default number will be used
 */
public AtlasAapt(ProcessExecutor processExecutor,
                 ProcessOutputHandler processOutputHandler,
                 BuildToolInfo buildToolInfo,
                 ILogger logger,
                 PngProcessMode processMode,
                 int cruncherProcesses) {
    super(processExecutor,
          processOutputHandler,
          buildToolInfo,
          logger,
          processMode,
          cruncherProcesses);
}
 
Example #4
Source File: AaptCruncher.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
public AaptCruncher(
        @NonNull String aaptLocation,
        @NonNull ProcessExecutor processExecutor,
        @NonNull ProcessOutputHandler processOutputHandler) {
    mAaptLocation = aaptLocation;
    mProcessExecutor = processExecutor;
    mProcessOutputHandler = processOutputHandler;
}
 
Example #5
Source File: ApkInfoParser.java    From javaide with GNU General Public License v3.0 5 votes vote down vote up
/**
 * Constructs a new parser
 *
 * @param aaptFile        aapt file to use to gather the info
 * @param processExecutor a process Executor to call aapt
 */
public ApkInfoParser(
        @NonNull File aaptFile,
        @NonNull ProcessExecutor processExecutor) {
    mAaptFile = aaptFile;
    mProcessExecutor = processExecutor;
}
 
Example #6
Source File: AndroidBuilder.java    From javaide with GNU General Public License v3.0 4 votes vote down vote up
@NonNull
public ProcessExecutor getProcessExecutor() {
    return mProcessExecutor;
}
 
Example #7
Source File: NinePatchOnlyCruncher.java    From bazel with Apache License 2.0 4 votes vote down vote up
public NinePatchOnlyCruncher(
    String aaptLocation,
    ProcessExecutor processExecutor,
    ProcessOutputHandler processOutputHandler) {
  super(aaptLocation, processExecutor, processOutputHandler);
}