aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc_tools
diff options
context:
space:
mode:
authorGravatar Daniel Wagner-Hall <danielwh@google.com>2015-03-17 19:19:25 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-03-18 13:45:04 +0000
commit6683d645ff3a1f3aedc4b7d559b9fbe4d7bcafc4 (patch)
tree2a8623d1b5967e4e32d68cff4bad0430ef2293e9 /src/objc_tools
parent412ef48f76d74b475fae9b35fd77452039f74af7 (diff)
Split actoolzip and ibtoolzip into separate binaries
Have actoolzip abs-ify the partial info plist path because otherwise it picks seemingly random directories to which to output the info plist files. -- MOS_MIGRATED_REVID=88851706
Diffstat (limited to 'src/objc_tools')
-rw-r--r--src/objc_tools/actooloribtoolzip/README5
-rw-r--r--src/objc_tools/actooloribtoolzip/java/com/google/devtools/build/xcode/actooloribtoolzip/ActoolOrIbtoolZip.java79
2 files changed, 0 insertions, 84 deletions
diff --git a/src/objc_tools/actooloribtoolzip/README b/src/objc_tools/actooloribtoolzip/README
deleted file mode 100644
index 7779de5b55..0000000000
--- a/src/objc_tools/actooloribtoolzip/README
+++ /dev/null
@@ -1,5 +0,0 @@
-actooloribtoolzip runs actool or ibtool, which compiles asset catalog files and
-compiles storyboards, respectively, and zips up the output, because actool and
-ibtool return an unpredictable number of output files.
-
-actool and ibtool only run on Darwin, so actooloribtoolzip only runs on Darwin.
diff --git a/src/objc_tools/actooloribtoolzip/java/com/google/devtools/build/xcode/actooloribtoolzip/ActoolOrIbtoolZip.java b/src/objc_tools/actooloribtoolzip/java/com/google/devtools/build/xcode/actooloribtoolzip/ActoolOrIbtoolZip.java
deleted file mode 100644
index 3b4158125c..0000000000
--- a/src/objc_tools/actooloribtoolzip/java/com/google/devtools/build/xcode/actooloribtoolzip/ActoolOrIbtoolZip.java
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2014 Google Inc. All rights reserved.
-//
-// Licensed 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 com.google.devtools.build.xcode.actooloribtoolzip;
-
-import com.google.common.base.Function;
-import com.google.common.collect.ImmutableList;
-import com.google.common.collect.Iterables;
-import com.google.devtools.build.xcode.zippingoutput.Arguments;
-import com.google.devtools.build.xcode.zippingoutput.Wrapper;
-import com.google.devtools.build.xcode.zippingoutput.Wrappers;
-
-import java.io.File;
-import java.io.IOException;
-
-/**
- * A tool which wraps actool or ibtool, by running actool/ibtool and zipping its output. See the
- * JavaDoc for {@link Wrapper} for more information.
- */
-public class ActoolOrIbtoolZip implements Wrapper {
-
- private static final Function<String, String> CANONICAL_PATH =
- new Function<String, String>() {
- @Override
- public String apply(String path) {
- File file = new File(path);
- if (file.exists()) {
- try {
- return file.getCanonicalPath();
- } catch (IOException e) {
- // Pass through to return raw path
- }
- }
- return path;
- }
- };
-
- @Override
- public String name() {
- return "ActoolOrIbtoolZip";
- }
-
- @Override
- public String subtoolName() {
- return "actool/ibtool";
- }
-
- @Override
- public Iterable<String> subCommand(Arguments args, String outputDirectory) {
- return new ImmutableList.Builder<String>()
- .add(args.subtoolCmd())
- .add("--compile")
- .add(outputDirectory)
- // actool munges paths in some way which doesn't work if one of the directories in the path
- // is a symlink.
- .addAll(Iterables.transform(args.subtoolExtraArgs(), CANONICAL_PATH))
- .build();
- }
-
- public static void main(String[] args) throws IOException, InterruptedException {
- Wrappers.execute(args, new ActoolOrIbtoolZip());
- }
-
- @Override
- public boolean outputDirectoryMustExist() {
- return true;
- }
-}