What needs to change on this file to make it work for both Java 7 and 6?

A little background – I’m creating a library that’s mostly a collection of utilities for the work I do. I have a project which I use to build a jar file, as well as a build.xml file that does some minor things. What I’d like to know is if there’s any way to make the build file more intelligent.
What I’m stuck with is that we have an application that runs on Java 6, but also has the ability to run on Java 7. So my build.xml file basically has 2 sets of commands that are almost identical, except one uses a fork/exec to run the process. Is there any way to make the build file more intelligent so that it switches between the 2 commands based on whatever it detects the target is running on?
An example of what I’d like the build file to do is:

If someone runs ant jarfile or mvn package or any other command that would trigger the build for Java 7
Replace:
exec {
dir target/lib/bin
executable=”java”
}

with:
exec {
dir target/lib/bin
executable=”java”
targetRuntime=7
}

If someone runs ant jarfile or mvn package or any other command that would trigger the build for Java 6
Replace:
exec {
dir target/lib/bin
executable=”java”
}

with:
exec {
dir target/lib/bin
executable=”java”
class

To view the video please report to Youtube or Vimeo website with the link that is published on this video page.

If you as you can see that some video have been deleted that are not legal, then, we have an DMCA report about this, in this case the video will be replaced by a notification of YouTube.

Please support the content creators with likes and shares before asking for their removal.

Thank you for subscribing.

Want more great videos?

Finding the limit of $g(x)$ when $x \to 0$.

Given $f$ is a function defined as:
$f(x) = \begin{cases} x^2, & x otin\mathbb{Z}\\{}\\0,& x \in \mathbb{Z}\end{cases}$
$g(x) = f(\lfloor x \rfloor) – f(x)$
Find the limit of $g(x)$ when $x \to 0$.

$\lim_{x \to 0}g(x) = \lim_{x \to 0} \left(\lfloor x \rfloor\right)^2 – \lfloor x \rfloor\left(\lfloor x \rfloor – x\right)=\lim_{x \to 0}\left(\lfloor x \rfloor\right)^2- \left(\lfloor x \rfloor – x\right)$
Here is where I am stuck. I’m not really sure how to deal with the floor function, and I haven’t got a clue how to find the value of $x$.
We notice that, for any $y\in\Bbb Z$, $\left\lfloor y\right\rfloor=y$, while, for any $y\in\Bbb Z$,