Search in sources :

Example 1 with HttpArchive

use of com.google.startupos.tools.build_file_generator.Protos.WorkspaceFile.HttpArchive in project startup-os by google.

the class WorkspaceParser method getWorkspaceFile.

public WorkspaceFile getWorkspaceFile() {
    WorkspaceFile.Builder result = WorkspaceFile.newBuilder();
    String absWorkspacePath = fileUtils.joinPaths(fileUtils.getCurrentWorkingDirectory(), "WORKSPACE");
    for (HttpArchive httpArchive : getHttpArchives(fileUtils.readFileUnchecked(absWorkspacePath))) {
        result.addHttpArchive(httpArchive);
    }
    return result.build();
}
Also used : WorkspaceFile(com.google.startupos.tools.build_file_generator.Protos.WorkspaceFile) HttpArchive(com.google.startupos.tools.build_file_generator.Protos.WorkspaceFile.HttpArchive)

Aggregations

WorkspaceFile (com.google.startupos.tools.build_file_generator.Protos.WorkspaceFile)1 HttpArchive (com.google.startupos.tools.build_file_generator.Protos.WorkspaceFile.HttpArchive)1