blob: f03fb1d609c9f2e3b820122cb7aa1c1217b37098 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
package org.superbiz.moviefun;
import org.apache.ziplock.JarLocation;
import java.io.File;
/**
* @version $Revision$ $Date$
*/
public class Basedir {
public static File basedir(final String s) {
final File classes = JarLocation.jarLocation(Basedir.class);
final File target = classes.getParentFile();
final File basedir = target.getParentFile();
return new File(basedir, s);
}
}