001/** 002 * Copyright 2010-2014 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.common.util.project.model; 017 018import java.io.File; 019 020import org.kuali.common.util.Assert; 021 022public final class Build { 023 024 public Build(Project project, String encoding, File projectDir, File directory, File outputDir, File sourceDir, File scriptSourceDir, File testOutputDir, File testSourceDir) { 025 Assert.noNulls(project, encoding, projectDir, directory, outputDir, sourceDir, scriptSourceDir, testOutputDir, testSourceDir); 026 this.project = project; 027 this.encoding = encoding; 028 this.projectDir = projectDir; 029 this.directory = directory; 030 this.outputDir = outputDir; 031 this.sourceDir = sourceDir; 032 this.scriptSourceDir = scriptSourceDir; 033 this.testOutputDir = testOutputDir; 034 this.testSourceDir = testSourceDir; 035 } 036 037 private final Project project; 038 private final String encoding; 039 private final File projectDir; 040 private final File directory; 041 private final File outputDir; 042 private final File sourceDir; 043 private final File scriptSourceDir; 044 private final File testOutputDir; 045 private final File testSourceDir; 046 047 public File getProjectDir() { 048 return projectDir; 049 } 050 051 public File getDirectory() { 052 return directory; 053 } 054 055 public File getOutputDir() { 056 return outputDir; 057 } 058 059 public File getSourceDir() { 060 return sourceDir; 061 } 062 063 public File getScriptSourceDir() { 064 return scriptSourceDir; 065 } 066 067 public File getTestOutputDir() { 068 return testOutputDir; 069 } 070 071 public File getTestSourceDir() { 072 return testSourceDir; 073 } 074 075 public Project getProject() { 076 return project; 077 } 078 079 public String getEncoding() { 080 return encoding; 081 } 082 083}