Back to project page adb-idea.
The source code is released under:
Apache License
If you think the Android project adb-idea listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.developerphil.adbidea.adb.command; //from www .ja v a 2s .com import com.android.ddmlib.IDevice; import com.intellij.openapi.project.Project; import org.jetbrains.android.facet.AndroidFacet; import java.util.ArrayList; import java.util.List; public class CommandList implements Command { private List<Command> commands; public CommandList(Command... commands) { this.commands = new ArrayList<Command>(); for (Command command : commands) { this.commands.add(command); } } @Override public boolean run(Project project, IDevice device, AndroidFacet facet, String packageName) { for (Command command : commands) { boolean success = command.run(project, device, facet, packageName); if (!success) { return false; } } return true; } }