Here you can find the source of getDependenciesPrivate(List
private static String getDependenciesPrivate(List<String> projects, boolean firstDependencies)
//package com.java2s; /**//from www .ja v a 2 s. com * Copyright 2014 SPeCS. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. under the License. */ import java.util.List; public class Main { private static String getDependenciesPrivate(List<String> projects, boolean firstDependencies) { if (projects.isEmpty()) { return ""; } StringBuilder builder = new StringBuilder(); // builder.append("depends=\""); // Append first if (!firstDependencies) { builder.append(","); } builder.append(getCompileTargetName(projects.get(0))); // Append remaining for (int i = 1; i < projects.size(); i++) { // for (String project : projects) { builder.append(","); builder.append(getCompileTargetName(projects.get(i))); // builder.append(getCompileTargetName(project)); } // builder.append("\""); return builder.toString(); } /** * The target name, which is "build_<PROJECT_NAME>". * * @return */ public static String getCompileTargetName(String projectName) { return "compile_" + projectName; } }