Path: blob/master/test/functional/cmdLineTests/shareClassTests/batchfiles/StaleOrphanTest.sh
6004 views
#1# Copyright (c) 2001, 2018 IBM Corp. and others2#3# This program and the accompanying materials are made available under4# the terms of the Eclipse Public License 2.0 which accompanies this5# distribution and is available at https://www.eclipse.org/legal/epl-2.0/6# or the Apache License, Version 2.0 which accompanies this distribution and7# is available at https://www.apache.org/licenses/LICENSE-2.0.8#9# This Source Code may also be made available under the following10# Secondary Licenses when the conditions for such availability set11# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU12# General Public License, version 2 with the GNU Classpath13# Exception [1] and GNU General Public License, version 2 with the14# OpenJDK Assembly Exception [2].15#16# [1] https://www.gnu.org/software/classpath/license.html17# [2] http://openjdk.java.net/legal/assembly-exception.html18#19# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception20#2122# ensure the new files are not created in the same second as the originals,23# otherwise the shared cache will not be able to determine the files have24# been modified25sleep 226cd ./StaleOrphansTest27rm *.class28cp StaleOrphan.java StaleOrphan.java.bak29cp ./temp/StaleOrphan.java .30cp StaleOrphan1.java StaleOrphan1.java.bak31cp ./temp/StaleOrphan1.java .32cp StaleOrphan2.java StaleOrphan2.java.bak33cp ./temp/StaleOrphan2.java .34cp StaleOrphan3.java StaleOrphan3.java.bak35cp ./temp/StaleOrphan3.java .36cp StaleOrphan4.java StaleOrphan4.java.bak37cp ./temp/StaleOrphan4.java .38cp StaleOrphan5.java StaleOrphan5.java.bak39cp ./temp/StaleOrphan5.java .40cp StaleOrphan6.java StaleOrphan6.java.bak41cp ./temp/StaleOrphan6.java .42cp StaleOrphan7.java StaleOrphan7.java.bak43cp ./temp/StaleOrphan7.java .44cp StaleOrphan8.java StaleOrphan8.java.bak45cp ./temp/StaleOrphan8.java .46cp StaleOrphan9.java StaleOrphan9.java.bak47cp ./temp/StaleOrphan9.java .48$1/javac -classpath ../ *.java49cd ..5051