1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one or more contributor license 3 * agreements. See the NOTICE file distributed with this work for additional information regarding 4 * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the 5 * "License"); you may not use this file except in compliance with the License. You may obtain a 6 * copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software distributed under the License 11 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 12 * or implied. See the License for the specific language governing permissions and limitations under 13 * the License. 14 */ 15 16 package org.apache.maven.lifecycle.internal.stub; 17 18 import org.apache.maven.lifecycle.DefaultSchedules; 19 import org.apache.maven.lifecycle.Schedule; 20 import org.apache.maven.lifecycle.Scheduling; 21 22 import java.util.Arrays; 23 import java.util.List; 24 25 /** 26 * @author Kristian Rosenvold 27 */ 28 29 public class DefaultSchedulesStub 30 { 31 public static DefaultSchedules createDefaultSchedules() 32 { 33 return new DefaultSchedules( getSchedulingList() ); 34 } 35 36 public static List<Scheduling> getSchedulingList() 37 { 38 return Arrays.asList( new Scheduling( "default", Arrays.asList( new Schedule( "compile", false, false ), 39 new Schedule( "test", false, true ) ) ) ); 40 } 41 }