Here you can find the source of getRelativeBaseDirectory(final File processedFile)
Parameter | Description |
---|---|
processedFile | a parameter |
public static String getRelativeBaseDirectory(final File processedFile)
//package com.java2s; /*// ww w.ja v a 2s . c o m * [y] hybris Platform * * Copyright (c) 2000-2014 hybris AG * All rights reserved. * * This software is the confidential and proprietary information of hybris * ("Confidential Information"). You shall not disclose such Confidential * Information and shall use it only in accordance with the terms of the * license agreement you entered into with hybris. * * */ import java.io.File; public class Main { /** * Retrieves the relative base directory from the currently processed file * * @param processedFile * @return base directory path */ public static String getRelativeBaseDirectory(final File processedFile) { return processedFile.getParentFile().getParentFile().getAbsolutePath(); } }