diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-01-07 11:19:13 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-01-07 11:19:13 +0700 |
commit | 96b15962f93d7e8400a1a03d20f2bc6939c7ad8e (patch) | |
tree | 11beddaf0b6d33183be20a0d5cf9286dcc33cd7b /build/lib | |
parent | 939e81e6babc20852fe1d6d1fa490c95e1aa8b56 (diff) | |
download | aspectj-96b15962f93d7e8400a1a03d20f2bc6939c7ad8e.tar.gz aspectj-96b15962f93d7e8400a1a03d20f2bc6939c7ad8e.zip |
Delete obsolete files
- Redundant copies of HTML files used in AspectJ installer, which
already exist as resource files in module 'build'
- Null-sized AspectJ library JARs which probably were used to trigger
certain build steps in the former Ant build
- BridgeVersion.java.txt, which has been replaced by a regular
org.aspectj.bridge.Version class which can dynamically determine
versions from a properties file instead of relying on them being
hard-coded into the template.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'build/lib')
-rw-r--r-- | build/lib/BridgeVersion.java.txt | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/build/lib/BridgeVersion.java.txt b/build/lib/BridgeVersion.java.txt deleted file mode 100644 index 047854cc6..000000000 --- a/build/lib/BridgeVersion.java.txt +++ /dev/null @@ -1,89 +0,0 @@ -/* ******************************************************************** - * Copyright (c) 1998-2001 Xerox Corporation, - * 2002 Palo Alto Research Center, Incorporated (PARC). - * All rights reserved. - * This program and the accompanying materials are made available - * under the terms of the Eclipse Public License v 2.0 - * which accompanies this distribution and is available at - * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.txt - * - * Contributors: - * Xerox/PARC initial implementation - * *******************************************************************/ - -package org.aspectj.bridge; - -import java.text.ParsePosition; -import java.text.SimpleDateFormat; -import java.util.Date; - -/** release-specific version information */ -public class Version { - - // generated from build/lib/BridgeVersion.java - - /** default version value for development version */ - public static final String DEVELOPMENT = "DEVELOPMENT"; - // VersionUptodate.java depends on this value - - /** default time value for development version */ - public static final long NOTIME = 0L; - - /** set by build script */ - public static final String text = "@build.version@"; - // VersionUptodate.java scans for "static final String text = " - - /** - * Time text set by build script using SIMPLE_DATE_FORMAT. - * (if DEVELOPMENT version, invalid) - */ - public static final String time_text = "@build.time@"; - - /** - * time in seconds-since-... format, used by programmatic clients. - * (if DEVELOPMENT version, NOTIME) - */ - private static long time = -1; // -1 == uninitialized - - /** format used by build script to set time_text */ - public static final String SIMPLE_DATE_FORMAT = "@build.time.format@"; - - public static long getTime() { - if (time==-1) { - long foundTime = NOTIME; - // if not DEVELOPMENT version, read time text using format used to set time - try { - SimpleDateFormat format = new SimpleDateFormat(SIMPLE_DATE_FORMAT); - ParsePosition pos = new ParsePosition(0); - Date date = format.parse(time_text, pos); - if (date!=null) foundTime = date.getTime(); - } catch (Throwable t) { - } - time = foundTime; - } - return time; - } - - /** - * Test whether the version is as specified by any first argument. - * Emit text to System.err on failure - * @param args String[] with first argument equal to Version.text - * @see Version#text - */ - public static void main(String[] args) { - if ((null != args) && (0 < args.length)) { - if (!Version.text.equals(args[0])) { - System.err.println("version expected: \"" - + args[0] - + "\" actual=\"" - + Version.text - + "\""); - } - } - } -} - - - - - |