本文整理汇总了Java中com.izforge.izpack.api.data.Pack类的典型用法代码示例。如果您正苦于以下问题:Java Pack类的具体用法?Java Pack怎么用?Java Pack使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Pack类属于com.izforge.izpack.api.data包,在下文中一共展示了Pack类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: afterPacks
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void afterPacks(final List<Pack> packs, final ProgressListener progressListener) {
try {
progressListener.startAction("Konfigurace RoboZonky", 7);
progressListener.nextStep("Příprava strategie.", 1, 1);
final CommandLinePart strategyConfig = prepareStrategy();
progressListener.nextStep("Příprava nastavení e-mailu.", 2, 1);
final CommandLinePart emailConfig = prepareEmailConfiguration();
progressListener.nextStep("Příprava nastavení JMX.", 3, 1);
final CommandLinePart jmx = prepareJmx();
progressListener.nextStep("Příprava nastavení Zonky.", 4, 1);
final CommandLinePart credentials = prepareCore();
progressListener.nextStep("Příprava nastavení logování.", 5, 1);
final CommandLinePart logging = prepareLogging();
progressListener.nextStep("Generování parametrů příkazové řádky.", 6, 1);
final CommandLinePart result = prepareCommandLine(strategyConfig, emailConfig, jmx, credentials, logging);
progressListener.nextStep("Generování spustitelného souboru.", 7, 1);
prepareRunScript(result);
progressListener.stopAction();
} catch (final Exception ex) {
LOGGER.log(Level.SEVERE, "Uncaught exception.", ex);
throw new IllegalStateException("Uncaught exception.", ex);
}
}
示例2: beforePacks
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void beforePacks(List<Pack> arg0) {
try {
Runtime.getRuntime().exec("/etc/init.d/open-xchange stop");
}
catch (IOException e) {
}
}
示例3: afterDir
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
public void afterDir(final File dir, final PackFile packFile,
final Pack pack) {
getLogger().logInfo(this, "afterDir",
"+++ TargetPath=[%s] Pack.name=[%s]", packFile.getTargetPath(),
pack.getName());
}
示例4: afterFile
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
public void afterFile(final File file, final PackFile packFile,
final Pack pack) {
getLogger().logInfo(this, "afterFile",
"+++ TargetPath=[%s] Pack.name=[%s]", packFile.getTargetPath(),
pack.getName());
}
示例5: beforeDir
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
public void beforeDir(final File dir, final PackFile packFile,
final Pack pack) {
getLogger().logInfo(this, "beforeDir",
"+++ dir=[%s] TargetPath=[%s] Pack.name=[%s]", dir.getName(),
packFile.getTargetPath(), pack.getName());
}
示例6: beforeFile
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
public void beforeFile(final File file, final PackFile packFile,
final Pack pack) {
getLogger().logInfo(this, "beforeFile",
"+++ file=[%s] TargetPath=[%s] Pack.name=[%s]", file.getName(),
packFile.getTargetPath(), pack.getName());
}
示例7: afterDir
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void afterDir(File arg0, PackFile arg1, Pack arg2) {
}
示例8: afterFile
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void afterFile(File arg0, PackFile arg1, Pack arg2) {
}
示例9: afterPack
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void afterPack(Pack arg0, int arg1) {
}
示例10: afterPacks
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void afterPacks(List<Pack> arg0, ProgressListener arg1) {
}
示例11: beforeDir
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void beforeDir(File arg0, PackFile arg1, Pack arg2) {
}
示例12: beforeFile
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void beforeFile(File arg0, PackFile arg1, Pack arg2) {
}
示例13: beforePack
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
@Override
public void beforePack(Pack arg0, int arg1) {
}
示例14: afterPack
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
public void afterPack(final Pack pack, final int index) {
getLogger().logInfo(this, "afterPack", "+++ Pack.name=[%s] index=[%s]",
pack.getName(), index);
}
示例15: afterPacks
import com.izforge.izpack.api.data.Pack; //导入依赖的package包/类
public void afterPacks(final List<Pack> packs,
final ProgressListener listener) {
getLogger().logInfo(this, "afterPacks", "+++ packs.size=[%s]",
packs.size());
}