Coder Social home page Coder Social logo

Install failed about amazon-kinesis-agent HOT 1 CLOSED

awslabs avatar awslabs commented on May 20, 2024
Install failed

from amazon-kinesis-agent.

Comments (1)

mengzhuo avatar mengzhuo commented on May 20, 2024

build.xml

<?xml version="1.0"?>
<project basedir="." default="release" xmlns:unless="ant:unless">
    <property name="agent.name" value="aws-kinesis-agent" />
    <property name="agent.package.name" value="AWSKinesisStreamingDataAgent" />
    <property name="agent.version" value="1.0" />
    <property name="agent.vendor" value="Amazon.com, Inc." />

    <property name="src.root" location="." />
    <property name="src.dir" location="src" />
    <property name="build.root" location="ant_build" />
    <property name="build.private" location="${build.root}/private" />
    <property name="build.lib" location="${build.root}/lib" />
    <property name="build.dependencies" location="dependencies" />

    <path id="classpath">
        <fileset dir="/usr/share/java" includes="**/*.jar" />
        <fileset dir="${build.dependencies}" includes="**/*.jar" />
    </path>

    <target name="get-java-version">
      <condition property="current.java.version">
        <or>
          <equals arg1="${ant.java.version}" arg2="1.7"/>
          <equals arg1="${ant.java.version}" arg2="1.8"/>
        </or>
      </condition>
    </target>
    <target name="check-java-version" depends="get-java-version" unless="current.java.version">
        <fail message="Unsupported Java version: ${ant.java.version}. Make sure that the Java version is 1.7 or greater."/>                                                                                                        [13/49]
    </target>

    <target name="init">
        <mkdir dir="${build.root}" />
    </target>

    <target name="compile" depends="check-java-version, init">
        <mkdir dir="${build.private}" />
        <javac source="1.7" target="1.7" includeantruntime="false" classpathref="classpath" srcdir="${src.dir}" destdir="${build.private}" />
        <property name="src.agent.path" value="com/amazon/kinesis/streaming/agent" />
        <copy todir="${build.private}/${src.agent.path}" failonerror="true">
            <fileset dir="${src.dir}/${src.agent.path}" excludes="**/*.java" />
        </copy>
    </target>

    <target name="build" depends="compile">
        <mkdir dir="${build.lib}" />
        <jar jarfile="${build.lib}/${agent.package.name}-${agent.version}.jar" basedir="${build.private}">
          <manifest>
                <attribute name="Main-Class" value="com.amazon.kinesis.streaming.agent.Agent" />
            </manifest>
        </jar>
    </target>

    <target name="clean">
        <delete dir="${build.root}" />
    </target>

    <target name="release" depends="clean, compile, build" />

I think you guys might want to update your document about minimal Java version requirement.

from amazon-kinesis-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.